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

Saving expanded JCL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Aug 05, 2009 4:18 pm
Reply with quote

Hi,

I have the following code:
Code:
/*******************************REXX******************************/   
DSIN = 'XXXX00D.ISDXU03.INPUT.JCLLIB(MYJCL)'                           
ADDRESS ISPEXEC                                                       
"EDIT DATASET('"DSIN"') MACRO(JJ)"                                     
IF RC > 4 THEN                                                         
  SAY 'JCL ERROR'                                                     
ELSE                                                                   
  SAY 'OK'                                                             
"ISREDIT CANCEL"                                                       
EXIT                                                                   

I want to save the expanded version output in some other dataset. How can I do it?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8798
Location: Welsh Wales

PostPosted: Wed Aug 05, 2009 4:25 pm
Reply with quote

Where is the expanded JCL created.
How is it created.
When is it created.
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Aug 05, 2009 4:30 pm
Reply with quote

The expanded jcl created in the same location
'XXXX00D.ISDXU03.INPUT.JCLLIB(MYJCL)' but if I CUT and PASTE the expanded JCL, expanded lines are not copied.

If I execute the REXX code by giving EX, it's expanding.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Wed Aug 05, 2009 4:38 pm
Reply with quote

Use VIEW rather than edit and put an MD9999 line command on the first line before doing the CUT and then cancel out.
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Wed Aug 05, 2009 5:23 pm
Reply with quote

Is there any possibility to use the same commend (MD9999) in the rexx code and save the output?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Wed Aug 05, 2009 7:13 pm
Reply with quote

ayansau wrote:
Is there any possibility to use the same commend (MD9999) in the rexx code and save the output?


No!

There are no publicly-documented methods to work with non-data lines in the ISPF editor, other than the L(ocate) command.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Wed Aug 05, 2009 7:32 pm
Reply with quote

Quote:
if I CUT and PASTE the expanded JCL, expanded lines are not copied.

If this is so, maybe the expanded lines are in fact message lines (==MSG>), note lines (=NOTE=) or info lines (======), not real member lines.
I'm not sure there is way to use MD in a macro, so maybe it is no possible to save.

Quote:
I want to save the expanded version output in some other dataset.

I assume that the macro JJ leaves the member opened, so you will have to change some of your logic:

Write your own macro MYJJ:
Code:
"ISREDIT JJ"
"ISREDIT CREATE newdsn(newmem) .ZF .ZL"
"ISREDIT CANCEL"


Execute your own macro instead of "JJ":
Code:
"EDIT DATASET('"DSIN"') MACRO(MYJJ)"
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Do we need to restart DB2 Z/OS for DA... DB2 0
This topic is locked: you cannot edit posts or make replies. How to save expanded jcl's into one l... CLIST & REXX 13
No new posts saving your settings in ISPF. TSO/ISPF 9
No new posts Daylight Saving this Weekend All Other Mainframe Topics 1
No new posts REXX-Undo Expanded copybooks statemen... TSO/ISPF 12
Search our Forums:


Back to Top