Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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: 757
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us