opening unix file in extend mode

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsstarter
Participant
Posts: 10
Joined: Wed Mar 29, 2006 10:32 pm

opening unix file in extend mode

Post by dsstarter »

Hi All,
This might be simple but not found the answer in my search

can we open a unix file in routine in extend mode....

i have 10 records to process in input file
for each record am calling a rouinte in transformer and writinr one more records in output file.......when i come to this routine second time my unix file should open in extend mode is it possible

thanks in advance
Starter
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You mean 'append' mode. Search for the SEEK command.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search also for OpenSequentialFile - it's a re-usable routine that, among other things, will position to end of file. It also handles all possible "bad" conditions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply