Create File function in Basic Lng..

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
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

Create File function in Basic Lng..

Post by hhh »

there are functions like OpenSeq,CloseSeq,WriteSeq,ReadSeq in BASIC language for file handling, so in same matter Is there any function to create sequential file in BASIC language ?
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

You can use CREATE command to create file. This can be used only after OPENSEQ function. So if the OPENSEQ fails then this function can be used to create the file if the file open fails on OPENSEQ.
Regards,
S. Kirtikumar.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

CLOSESEQ (or FLUSH) will create the file if any write operation (WRITESEQ, WRITEBLK or WEOFSEQ) has been performed. WRITESEQF will also create file file.

If no write operation has been performed but CREATE has been used, the file will be of zero length when closed.
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