IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

creating a member in pds using jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
BhavanaS

New User


Joined: 20 Feb 2008
Posts: 17
Location: India

PostPosted: Thu May 08, 2008 9:44 am
Reply with quote

Hi,

I have a file generated in an sqr program.I want this file to be written to a member in a pds which is already created.Can you share the code for this step?Lets say I have the logical file name SQRXX.OUTFLE1. Will something like this work

Code:
000014 //SQRXX.OUTFLE1 DD DSN=&INDEX01.UNLOAD.JCLS(SU1),
000015 //         DISP=(NEW,CATLG,DELETE),
000016 //         UNIT=SYSDA,
000017 //         SPACE=(CYL,(150,25),RLSE),
000018 //         DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)

Kindly help me out.

Thanks in advance,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 08, 2008 11:18 am
Reply with quote

Hello,

If the dataset already exists, no - that jcl will not work.

To add a member to an existing dataset simply specify the ddname, the dsn and member name, and use disp=shr.
Code:
//yourdd dd dsn=the.pds.dsn(themem),disp=shr
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 08, 2008 11:22 am
Reply with quote

Quote:
Will something like this work

Did you try it for yourself before posting ?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top