Hi Can anyone please guide me how to open a file and read a file in routines,
The routine can be server or parallel routine.
The requirement is that i need to take a parameters from the file1 and use it in the routine.
the routine need to open the file2 and perform some actions by taking file1 parameters and will give us and agrument ouput of file2.
Can please anyone suggest is it possible in routine?
Please help me in proceeding further..
How to read the file in routines
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Search the forum for OpenSequentialFile, a server routine that covers all the possiblilities for opening. Choose the one marked version 4.x. Then research ReadSeq, ReadBlk and CloseSeq statements in the DataStage BASIC manual.
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.
May be this can be of little hepl to you
Code: Select all
OPENSEQ filename TO filevar Then
Loop
ReadSeq ln From filevar Else Exit
filetxt = ln
Repeat
CloseSeq filevar