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 

how to handle the line command like MD in REXX

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


Joined: 14 Apr 2006
Posts: 87
Topics: 33

PostPosted: Sat Oct 28, 2006 2:15 am    Post subject: how to handle the line command like MD in REXX Reply with quote

i have requirement to prepare the unit jcl from the job.so anyone can please tell me how to handle the line commands in rexx.

what my plan is to run jem which expands the procs and after that i have to issue md line command. so please let me know how to code to use the line command mb in REXX.
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Sat Oct 28, 2006 2:40 am    Post subject: Reply with quote

You can not do this through a simple edit macro because non-data lines (info, note, cols, profile, etc) are not addressable by macros.

This would be possible using some very advanced techniques but that would require extensive knowledge of some pretty arcane ISPF techniques and idiosyncrasies (a custom editor panel with a panel exit that modifies the ISPF editor data screen variable ZDATA, based on triggers on the screen and a macro to add those triggers and handle the pressing of the virtual enter key). All in all, you would do best to just run the command manually.
Back to top
View user's profile Send private message Visit poster's website
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Mon Oct 30, 2006 5:57 am    Post subject: Reply with quote

An alternate way would be the following:
1. Change the job card by adding "TYPRUN=SCAN"
2. Submit the job and wait until it has completed.
3. Inspect the JCL which has now been expanded by JES. You'll find all procedures or includes expanded and all variables substituted.

This all can be done automatically by a complex REXX program. But as semigeezer said, this requires pretty much knowledge of a couple of components (REXX, ISPF, SDSF, JCL). So I advise you to do it manually.
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