MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File open in "Extend" mode

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ashutosh_agl3
Beginner


Joined: 14 Aug 2003
Posts: 28
Topics: 15

PostPosted: Tue Aug 31, 2004 2:46 am    Post subject: File open in "Extend" mode Reply with quote

I need to open a Sequentila file for opending and am trying to do so using the "Extend" mode.

The purpose is to append file (if already there) else to create a new file.

However while refering to certain refernce manuals there is one restriction with this and it refers to some

"SELECT OPTIONAL" clause.

Could you help to get some more details as to how this can be achieved.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Aug 31, 2004 5:55 am    Post subject: Reply with quote

ashutosh_agl3,

Quote:
The purpose is to append file (if already there) else to create a new file.


You need dynamic allocation in case the file does not exist. Why not handle this in JCL itself with IEFBR14

Code:

//STEP0100  EXEC PGM=IEFBR14
//*
//MODFILE   DD DSN=YOUR FILE IN QUESTION
//             DISP=(MOD,CATLG,DELETE),
//             UNIT=SYSDA,
//             SPACE=(TRK,(1,1),RLSE)
//             DCB=(LREC=ZZZ,RECFM=FB,BLKSIZE=0)
//*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group