MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

including procs when editing jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
stansaraczewski
Beginner


Joined: 06 Sep 2006
Posts: 44
Topics: 13
Location: Southern California

PostPosted: Fri Dec 18, 2009 5:48 pm    Post subject: including procs when editing jcl Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Dec 18, 2009 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Dec 19, 2009 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
stansaraczewski
Beginner


Joined: 06 Sep 2006
Posts: 44
Topics: 13
Location: Southern California

PostPosted: Mon Dec 21, 2009 12:54 pm    Post subject: Reply with quote

Thank you both for your suggestions.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Dec 21, 2009 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group