how to create a PDS member using JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

how to create a PDS member using JCL

Postby Pumpkin » Sat Mar 26, 2011 7:20 am

hi,
i use IEFBR14 in JCL to create PS dataset and PDS dataset,but how to create a member for existing PDS dataset? how to set the DISP or other parameters?
Thanks a lot!
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to create a PDS member using JCL

Postby MrSpock » Sat Mar 26, 2011 7:39 am

You have to actually write something, so you need a real program - SORT, IEBGENER, IEBUPDTE, whatever you feel like using.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: how to create a PDS member using JCL

Postby steve-myers » Sat Mar 26, 2011 9:01 am

As MrSpock says, you have to use a program that will write some data into the PDS, for example -
//INITPDS EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  DUMMY
//SYSUT2   DD  DSN=newpds(member),...
//SYSUT1   DD  *
Data for a new PDS member
/*

JCL like this will allocate the PDS, but it won't write anything to it.
//ALLOCPDS EXEC PGM=IEFBR14
//NEWPDS   DD  DISP=(NEW,CATLG),DSN=pdsname(member),...

MrSpock gave a list of "standard" programs you can use, though there are many more programs, including programs that you write or have already written.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: how to create a PDS member using JCL

Postby Robert Sample » Sat Mar 26, 2011 5:02 pm

And remember, DISP is for the data set, NOT for the member.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: how to create a PDS member using JCL

Postby Pumpkin » Mon Mar 28, 2011 6:45 am

thanks a lot!
-------------------
Pumpkin
Pumpkin
 
Posts: 55
Joined: Sat Mar 05, 2011 9:12 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post