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

Invoking the "Jobcard" command in the REXX routine


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

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri May 04, 2012 10:24 pm
Reply with quote

Clearly, it is a CLIST being executed as a rexx program.
Back to top
View user's profile Send private message
Fathima Begum S

New User


Joined: 02 May 2012
Posts: 3
Location: India

PostPosted: Mon May 07, 2012 12:21 pm
Reply with quote

Actually, I am learning REXX , and not sure abt many concepts clearly.
Got this piece of code from forum only.
Curious to execute it and got an error in line 5.

/* */
/* INSERTS A JOBCARD AT TOP OF MEMBER */
/* */
ISREDIT MACRO
CONTROL NOCONLIST
ISREDIT RECOVERY OFF
ISREDIT RESET
ISREDIT INSERT: +
ISREDIT LINE_AFTER 0 = "//RAEGVGJ1 JOB (DWARD,SYS),'ACCOUNTS' "
ISREDIT LINE_AFTER 1 = "// CLASS=6, "
ISREDIT LINE_AFTER 2 = "// MSGCLASS=T, "
ISREDIT LINE_AFTER 3 = "// NOTIFY=&SYSUID, "
ISREDIT LINE_AFTER 4 = "// MSGLEVEL=(1,1) "
ISREDIT LINE_AFTER 5 = "//* "
EXIT CODE(0)



@expat: since it is not exactly my code, i have mentioned as to "SOLVE"
Anything wrong in that........ thanks for ur reply.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon May 07, 2012 12:55 pm
Reply with quote

This is an edit macro - you issue the command on the command line whilst editing a dataset - not by TSO commandname. How did you invoke it?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon May 07, 2012 12:58 pm
Reply with quote

If you look at what Pedro wrote...

The code you show does not have a single line of rexx in it.

Everything prefixed by ISREDIT gets shipped out for processing. Leaving:


Code:
/* */

CONTROL NOCONLIST
 
EXIT CODE(0)


The CONTROL and the EXIT are CLIST commands. Stuff them through the rexx interpreter and certainly the CONTROL will get busted as invalid.... which it did.

It is not rexx, so not such a good example for learning rexx...
Back to top
View user's profile Send private message
Fathima Begum S

New User


Joined: 02 May 2012
Posts: 3
Location: India

PostPosted: Mon May 07, 2012 2:06 pm
Reply with quote

Thank you for ur informations..
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue May 08, 2012 10:01 pm
Reply with quote

See Appendix C of TSO/E Rexx Users' Guide for a comparison of CLIST vs REXX.

It is not clearly mentioned there, but CLISTs can only be in the SYSPROC concatenation. A REXX program can be in either SYSPROC or SYSEXEC concatenations.

Since either CLISTs and REXX programs can both be in the SYSPROC concatenation, you have to tell the language processor which language it is: rexx programs need to have the first line be a comment with the word 'rexx' in it.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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
Search our Forums:

Back to Top