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

REXX ISPF EDIT Macro to Copy Job Card


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

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Wed Nov 29, 2006 8:34 pm
Reply with quote

Please help me in writing a Rexx script to insert the Jobcard details into the member while in edit mode.

For ex:

I am preapring a JCL using some tools(file aid).

The job card info will be different,i need to edit it each time to make it compatible.if i we have a script,we can call th script which insert the Standard Jobcard into the member.


Thanks,
Ravi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Nov 29, 2006 8:58 pm
Reply with quote

I moved this to the ISPF Forum, since I presume that you might actually want to create an ISPF EDIT Macro, written in REXX, to insert some records.

This is a crude, but functional skeleton:
Code:

/* REXX */                                                                                           
"ISREDIT MACRO"                                                             
lineno = 0                                                         
line = "//JOBNAME JOB (....),"
"ISREDIT LINE_AFTER "lineno" = (line)"                             
lineno = lineno + 1                                                 
line = "//       MSGCLASS="msgclass",MSGLEVEL=(1,1),NOTIFY=&SYSUID"
"ISREDIT LINE_AFTER "lineno" = (line)"                             
lineno = lineno + 1                                                 
line = "//*"                                                       
"ISREDIT LINE_AFTER "lineno" = (line)"                             
Exit 0                                                             
Back to top
View user's profile Send private message
ravi17s
Warnings : 1

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Thu Nov 30, 2006 11:43 am
Reply with quote

Thanks for your help!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top