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
 

 

How to copy the temporary dataset created by SKEL JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
krishanubardhan

New User


Joined: 27 Oct 2006
Posts: 3

PostPosted: Tue Nov 07, 2006 8:08 pm    Post subject: How to copy the temporary dataset created by SKEL JCL?
Reply with quote

Hi,
After running a REXX program, the SKEL JCL so created by the REXX is displayed as a temporary dataset (name of which changes for each run).
I require to copy this temporary dataset to another user defined dataset..Please give me suggestions how it can be done..
For reference, I am giving the piece of code where the Skel JCL is activated:

ADDRESS ISPEXEC
"LIBDEF ISPSLIB DATASET ID('.......................')"
/* OPEN TAILORING AND TAILOR AND CLOSE */
SKELNAM = <name of SKEL>
"FTOPEN TEMP" ;"FTINCL &SKELNAM"; "FTCLOSE"
/* GET DATAID OF FILE */
"VGET (ZTEMPF,ZTEMPN) SHARED"
"LMINIT DATAID(JCLID) DDNAME(&ZTEMPN)"
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Tue Nov 07, 2006 9:24 pm    Post subject:
Reply with quote

Hi !

Just alloc a PDS and save it as a member there.

TEMPDSN = "IER1337.USER.JCL.S000"
TEMPJOB = "B92SPOOL"

ADDRESS TSO "ALLOC F(ISPFILE) DSN('"TEMPDSN"') SHR REUS"
ADDRESS ISPEXEC "FTOPEN "

ADDRESS ISPEXEC "FTINCL UMB92ALL"
ADDRESS ISPEXEC "FTINCL UMB92NAM"

ADDRESS ISPEXEC "FTCLOSE NAME("TEMPJOB")"
ADDRESS ISPEXEC "EDIT DATASET ('"TEMPDSN"("TEMPJOB")'"

ADDRESS TSO "FREE F(ISPFILE) "

Hope it helps, Regards, UmeySan
Back to top
View user's profile Send private message
krishanubardhan

New User


Joined: 27 Oct 2006
Posts: 3

PostPosted: Wed Nov 08, 2006 10:04 am    Post subject: Re: How to copy the temporary dataset created by SKEL JCL?
Reply with quote

Thanks,
But can you please make it clear so that I can relate it to my code?
There are certain things in your code which I am unable to comprehend.
Please consider that, I need to tailor my SKEL JCL into a PS say 'SKEL.JCL.DATASET'.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Nov 08, 2006 3:20 pm    Post subject:
Reply with quote

Hi !

So here in a few words. I have a PDS named IER1337.USER.JCL.S000.
it already exists. Tis is the PDS where i store the complete JCL after File-Tayloring as a new member named B92SPOOL.

Then i do the normal File-Tayloring. The Skel-jcl is in SkeletonLibrary.

ADDRESS ISPEXEC "FTOPEN "
ADDRESS ISPEXEC "FTINCL UMB92ALL"
ADDRESS ISPEXEC "FTINCL UMB92NAM"

Now I save the complete JCL as a member:
ADDRESS ISPEXEC "FTCLOSE NAME("TEMPJOB")"

Now I open that member in EditMode for displaying that the user could
change some things and submit it or whatever.

Hope it's clear, Regards, UmeySan
Back to top
View user's profile Send private message
krishanubardhan

New User


Joined: 27 Oct 2006
Posts: 3

PostPosted: Wed Nov 08, 2006 3:52 pm    Post subject: Re: How to copy the temporary dataset created by SKEL JCL?
Reply with quote

Hi,
Thanks UmeySan. It's clear now.
That worked.

Regards,
Krishanu
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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