View previous topic :: View next topic |
Author |
Message |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Sat Oct 28, 2006 2:15 am Post subject: how to handle the line command like MD in REXX |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sat Oct 28, 2006 2:40 am Post subject: |
|
|
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 |
|
 |
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Mon Oct 30, 2006 5:57 am Post subject: |
|
|
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 |
|
 |
|
|