IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Convert JCL and Proc... to straight JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


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

PostPosted: Fri Mar 20, 2009 9:40 pm
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
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: 400
Location: Mumbai

PostPosted: Sat Mar 21, 2009 4:36 am
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
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: 400
Location: Mumbai

PostPosted: Sun Mar 22, 2009 2:30 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Convert HEX to Numeric DB2 3
Search our Forums:

Back to Top