need to write/append to a file through routine

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sendmkpk
Premium Member
Premium Member
Posts: 97
Joined: Mon Apr 02, 2007 2:47 am

need to write/append to a file through routine

Post by sendmkpk »

Hi,

I want to write to a file in server routine, is it possible.
Praveen
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. You basically write to the file as you normally would but use the SEEK command first to move to the end of the file before writing. Lots of information to be found if you do an exact search for "OpenSequentialFile" here and then start at the bottom of the results with Ray's post from 2005 that contains the code for that routine. Other discussions on the subject ensue as you motor forwards in time. :wink:
-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 »

Craig meant to link to this thread.
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