I need to write some predefined/static text and also some variables such as DSgetlinkinfo and someother parameter values into the File.
what are the functions to write into a sequential file. .... how can this be done
Writing into a text file
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 560
- Joined: Wed Jul 13, 2005 5:36 am
- Location: Ohio
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
In a Routine. Probably in a before/after or job control routine.
DataStage BASIC Notes
1. Lines do not require a ";" terminator.
2. "Then" or "Else" on the end of a line open a block of statements that must be terminated by an "End" statement.
Tip
Track down the OpenSequentialFile() function (search DSXchange) which covers some of the issues that your code doesn't, such as opening a file for writing when the file does not yet exist.
DataStage BASIC Notes
1. Lines do not require a ";" terminator.
2. "Then" or "Else" on the end of a line open a block of statements that must be terminated by an "End" statement.
Tip
Track down the OpenSequentialFile() function (search DSXchange) which covers some of the issues that your code doesn't, such as opening a file for writing when the file does not yet exist.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.