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
 
Convert JCL and Proc... to straight JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Brad Polhemus

New User


Joined: 15 Aug 2008
Posts: 3
Location: Jacksonville

PostPosted: Fri Mar 20, 2009 7:49 pm    Post subject: Convert JCL and Proc... to straight JCL
Reply with quote

Does something like this exist?

I have the need to convert many execution jcls (and their procs) to straight jcl.

Thanks!!
Back to top
View user's profile Send private message

Brad Polhemus

New User


Joined: 15 Aug 2008
Posts: 3
Location: Jacksonville

PostPosted: Fri Mar 20, 2009 8:00 pm    Post subject: Reply to: Convert JCL and Proc... to straight JCL
Reply with quote

Would it be possible to run jclcheck or something... and output a datset... then extract info from there... that seems relatively easy.
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: Fri Mar 20, 2009 9:40 pm    Post subject:
Reply with quote

Hello,

It will probably help if you define "straight jcl".

Many (most?) PROCs use symbolic parameters. If you take away the proc, this may become more than just a little inconvenient. . .
Back to top
View user's profile Send private message
DB2 Guy

New User


Joined: 28 Oct 2008
Posts: 98
Location: Cubicle

PostPosted: Fri Mar 20, 2009 9:49 pm    Post subject:
Reply with quote

May be some trick would do it(JSCAN & save the outcome to in some DSN. . . ), but what's the final use of that? By the way, if those jobs are existing and had been run at least once, XDC the "JESJCL" DDname from SYSOUT . . .
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sat Mar 21, 2009 4:36 am    Post subject: Reply to: Convert JCL and Proc... to straight JCL
Reply with quote

You can run the job with Typrun=scan and then use an edit macro to convert the substitutions back to jcl. It is a little complicated to do, a little more than 100 lines of rexx, but it gets you most of the way there. I have one that is invoked from the SE subcommand in SDSF and recreates the JCL after substitution but I can't post it (property of my employer and also might not work completely and no comments so I don't know how it works anymore). The the only thing I remember that it doesn't know about is inline data but there are probably other limitations to this approach.
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Sat Mar 21, 2009 7:50 pm    Post subject:
Reply with quote

There are a lot of problems with this; what happens to JES2/JES3 statements? Are they dropped? Comments? When text is substituted, lines my be longer than 72 characters causing errors if the JCL is submitted without further editing.

I used to do A LOT of hand editing of JCL like this. When you get in a rythm you can knock these out pretty fast (>100 a day?). It's basically glorified data entry, but it's the only choice I had.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sun Mar 22, 2009 2:30 am    Post subject:
Reply with quote

mtaylor wrote:
There are a lot of problems with this; what happens to JES2/JES3 statements? Are they dropped? Comments? When text is substituted, lines my be longer than 72 characters causing errors if the JCL is submitted without further editing.
On my system. comments and JES2 statements are preserved. The job card has to have the right MSGLEVEL, of course, and the macro has to split lines that would go past 71 including correctly quoting parameters. But as I said, there are limitations to this approach so you need to do a manual verification anyway but this does get you 90% of the way.
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 LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm

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