MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create a loadlib with just JCL and not using ISPF

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Deaf Smith
Beginner


Joined: 22 Jul 2008
Posts: 18
Topics: 12

PostPosted: Thu Jan 14, 2010 11:29 am    Post subject: How to create a loadlib with just JCL and not using ISPF Reply with quote

I'm able to ccpy loadlibs to loadlibs but I need to create a fresh loadlib late at night and then copy the production loadlib to the new test one.

ISPF will now show me the JCL behind the online procedure.

How is it done?

Thanks!
_________________
Deaf
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jan 14, 2010 11:55 am    Post subject: Reply with quote

ISPF uses dynamic allocation to create load libraries (SVC 99) but in JCL you would use a DD name with DISP=(New,catlg) and all the required attributes for the data set you want as a target. You can use that as SYSUT2 in an IEBCOPY step.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Deaf Smith
Beginner


Joined: 22 Jul 2008
Posts: 18
Topics: 12

PostPosted: Thu Jan 14, 2010 1:55 pm    Post subject: Reply with quote

Well this works for any of you that needs it:

//HACKLOAD JOB (0000),'LOADLIB',CLASS=A,MSGCLASS=X,REGION=8M
//*
//************************************************************
//* THIS WILL AUTOMATICLY CREATE A NEW LOADLIB AND THEN *
//* MOVE LOAD MODULES FROM OLD LOADLIB TO NEW ONE *
//************************************************************
//*
//STEP01 EXEC PGM=IEFBR14
//DD01 DD DSN=DEAFSMTH.LOADTST,
// DISP=(MOD,DELETE,DELETE),UNIT=SYSDA,SPACE=(TRK,0)
//*
//STEP02 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=DEAFSMTH.LOAD,DISP=SHR
//SYSUT2 DD DSN=DEAFSMTH.LOADTST,DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(60,20),RLSE),
// DCB=(RECFM=U,LRECL=0,BLKSIZE=32760,DSORG=PO),
// DSNTYPE=LIBRARY
//SYSUT3 DD SPACE=(CYL,(10,2)),DISP=(,DELETE)
//SYSUT4 DD SPACE=(CYL,(10,2)),DISP=(,DELETE)
//SYSIN DD *
COPY OUTDD=SYSUT2,INDD=((SYSUT1,R))
/*
//
_________________
Deaf
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Thu Jan 14, 2010 7:10 pm    Post subject: Reply with quote

Deaf, your job creates a PDSE load library. For those of you who are creating a PDS, be sure to add a "directory blocks" subparameter for SYSUT2.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Jan 15, 2010 4:51 am    Post subject: Reply with quote

You could use an ADRDSSU Copy Job to do the same, and probably faster. In your iefbr14 job I would also use a LIKE in the DD statement to make sure that the attributes of the new file are like the attributes of the old file.
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Jan 15, 2010 9:28 am    Post subject: Reply with quote

warp,

Notice that the IEFBR14 step is merely to delete the current lib should it exist.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Mon Jan 18, 2010 1:59 am    Post subject: Reply with quote

Bill, got me again. Good that you are around.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group