View previous topic :: View next topic |
Author |
Message |
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Fri Dec 18, 2009 5:48 pm Post subject: including procs when editing jcl |
|
|
Is there a way short of writing a macro to display INCLUDEs and PROCs while editing or browing JCL ?
One has to 'hop around' to see what a certain PROC or INCLUDE does... would be nice to pull it into the active session.
I am using ISPF. |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Fri Dec 18, 2009 10:01 pm Post subject: |
|
|
issue a command line copy dsn(mbr)
with an A on the line after which you want to place the proc.
if your version of ISPF does not support that convention,
just issue a copy and then use the extended copy panel that will be displayed. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sat Dec 19, 2009 4:01 pm Post subject: |
|
|
another method is to submit a job with typrun=scan and an appropriate msglevel in the job card and look at the output of the expanded proc in the SDSF (or iof or sysview or ejes or ...). A helpful tool is to write an edit macro to turn that back into (semi)usable JCL. I have one at http://sillysot.com/ftp/se2jcl.txt but that version is a little old and may have some bugs. If I can ever find the password to that website (haven't updated it in a while) I'll upload a later version, though what is there should work OK.
I would advise against trying to do substitution yourself. There are too many variables to consider (where does the proc reside, set statements, jcllib statements, formatting oddities, inline JCL in DATA statements, etc). _________________ 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 |
|
|
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Mon Dec 21, 2009 12:54 pm Post subject: |
|
|
Thank you both for your suggestions. |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Dec 21, 2009 2:15 pm Post subject: |
|
|
I once had an EDIT macro called SHOWPROC that placed the PROC inline as MSG lines. Can't remember where I found it. I think it was an MVS help site or maybe it was www.CBTTAPE.org. You provided the DSNs of the PROCLIBs and it looks thru the list for the first matching member. _________________ 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 |
|
|
|
|