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

Create a PDSE in JCL by using DSNTYPE=LIBRARY


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

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Sat Nov 17, 2007 4:41 am
Reply with quote

Maybe everyone else already knows this but maybe it will help someone.

I have always created my PDSEs with 3.2 and DSORG Lib
But I did not know how to create a PDSE in JCL.
I did searches in this forum and the web but did not find it. I found hints and with testing created the following JCL to create the PDSE.
Code:
//**********************************************************
//**           CREATE THE PDSE                            **
//**********************************************************
//STEP10  EXEC PGM=IEFBR14                                 
//DD01      DD DSN=HLQ.PDSE1,                           
//             DISP=(NEW,CATLG,DELETE),                     
//             UNIT=DISK,SPACE=(CYL,(2,1)),                 
//             DCB=(LRECL=80,BLKSIZE=0,DSORG=PO,RECFM=FB), 
//             DSNTYPE=LIBRARY                             
//**********************************************************
//**           CREATE A PDSE MEMBER                       **
//**********************************************************
//STEP20  EXEC PGM=ICEGENER                                 
//SYSUT1    DD *                                           
//SYSUT2    DD DSN=HLQ.PDSE1(MEMBER1),DISP=SHR         
//SYSPRINT  DD SYSOUT=*                                     
//SYSIN     DD DUMMY                                       
//**********************************************************
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: Sat Nov 17, 2007 6:22 am
Reply with quote

Hello Douglas,

Thank you for posting this icon_smile.gif

d
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Sat Nov 17, 2007 9:48 am
Reply with quote

fine manual; how to create PDSE

Create PDSE using IDCAMS
Code:
//*******************************************************
//ALLOC    EXEC  PGM=IDCAMS,DYNAMNBR=1                   
//SYSPRINT DD    SYSOUT=A                               
//SYSIN    DD    *                                       
                   ALLOC -                               
                      DSNAME(LOAD) -                     
                      NEW -                             
                      DSORG(PO) -                       
                      DSNTYPE(LIBRARY)                   
/*                                                       
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 How to create a list of SAR jobs with... CA Products 3
No new posts Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top