Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

creating a member in pds using jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: creating a member in pds using jcl
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

Site Director


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

PostPosted: Thu May 08, 2008 11:18 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 08, 2008 11:22 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us