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
 

 

Create a PDSE in JCL by using DSNTYPE=LIBRARY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Create a PDSE in JCL by using DSNTYPE=LIBRARY
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

Site Director


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

PostPosted: Sat Nov 17, 2007 6:22 am    Post subject: Reply to: Create a PDSE in JCL by using DSNTYPE=LIBRARY
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    Post subject:
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    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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm


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