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

how to execute REXX in CA-7


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Jan 23, 2009 2:01 am
Reply with quote

Hi,

While searching I got following pgms to run REXX.
IRXJCL, IKJEFT01,IKJEFT1B can be used to execute REXX in Batch, TSO. But when I am using them in my jcl and submitting the jcl in CA7 then its giving abend.


Can anybody suggest me what PGM can be used to execute REXX in CA7.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 23, 2009 2:11 am
Reply with quote

Hello,

Do not post "it did not work" - no useful replies can be made. . .

If you want help, you have to post what the problem is - any and all diagnostic info provided by the system.

Once you provide sufficient details, someone may have a suggestion.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 23, 2009 2:11 am
Reply with quote

From what I can tell in the CA documentation, you can invoke CA-7 from a REXX by using the CA7REXX sample code in CAICLIB. It does not appear that you can invoke REXX under CA-7 at this time. If you don't know where your CAICLIB is, you'll need to contact your site CA-7 support person to find out which high level qualifier was used for this PDS.
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Jan 23, 2009 2:29 am
Reply with quote

Dick,

Using IEBGENER, below rexx code is copied to A012345.TEST.IEBGENER(REXX1).

/* REXX */
EOFFLAG = 2
RETURN_CODE = 0
EXITCODE = 0
IN_CNTR = 0
OUT_CNTR = 0
"EXECIO 0 DISKR "FILEIN" (OPEN"
DO WHILE (RETURN_CODE ¬= EOFFLAG)
"EXECIO 1 DISKR FILEIN"
RETURN_CODE = RC
IF RETURN_CODE = 0 THEN
DO
IN_CNTR = IN_CNTR + 1
PULL RECORD
PARSE VAR RECORD . "DD DSN=" DSN "," TAIL

QUEUE DSN
"EXECIO * DISKW FILEOUT"
OUT_CNTR = OUT_CNTR + 1
END
END

SAY 'RECS READ =' IN_CNTR
SAY 'RECS OUT =' OUT_CNTR
"EXECIO 0 DISKR FILEIN (FINIS"
"EXECIO 0 DISKW FILEOUT (FINIS"

In the next step, used "IRXJCL" to execute REXX1.

//STEP055 EXEC PGM=IRXJCL,PARM='REXX1'
//****************************************************
//SYSEXEC DD DSN=A012345.TEST.IEBGENER,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY
//FILEIN DD DSN=OUTPUT1,DISP=SHR
//FILEOUT DD DSN=OUTPUT2,DISP=SHR


OUTPUT OF STEP055:
1 *-* /* REXX */
+++ RC(-3) +++
7 *-* /********************************************************************
+++ RC(-3) +++
8 *-* /* OPEN THE "DDNAME" FILE, BUT DO NOT READ ANY RECORDS YET. ALL
+++ RC(-3) +++
9 *-* /* RECORDS WILL BE READ AND PROCESSED WITHIN THE LOOP BODY.
+++ RC(-3) +++
10 *-* /********************************************************************
+++ RC(-3) +++
X0617E EXECIO error. Unrecognized or ambiguous keyword option found.
12 *-* /********************************************************************
+++ RC(-3) +++
13 *-* /* NOW READ ALL LINES FROM "DDNAME" STARTING AT LINE 1.
+++ RC(-3) +++
14 *-* /********************************************************************
+++ RC(-3) +++
15 +++ DO WHILE (RETURN_CODE ¬= EOFFLAG) /* LOOP WHILE NOT END-OF-FILE
IRX0034I Error running REXX1, line 15: Logical value not 0 or 1


When I am executing these steps in TSO using "SUB", job is giving RC=0; When I am executing the same steps in CA-7, its giving the above output with abend code 3650.

While searching I came to know on TSO REXX can be executed using PGM "IRXJCL". But I never find any PGM to execute REXX in CA-7.

Please suggest and let me know for any more information.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 23, 2009 3:06 am
Reply with quote

Hello,

Possibly there is something i am missing, but the errors posted do not match the rexx code posted. . . icon_confused.gif

Quote:
When I am executing the same steps in CA-7
I do not know what this means. CA7 schedules/submits jobs. How do you execute something "in ca7"?

Suggest you use IKJEFT01 instead of IRXJCL as IRXJCL is quite limited (it does not establish a tso address space, so no tso or ispf commands may be used).
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Jan 23, 2009 3:22 am
Reply with quote

Dick,

While copying the REXX code I removed the comments, that is why you found mis match in errors. icon_smile.gif

Quote:
OUT_CNTR = 0 /* INITIALIZE # OF LINES WRITTEN */
/*********************************************************************/
/* OPEN THE "DDNAME" FILE, BUT DO NOT READ ANY RECORDS YET. ALL */
/* RECORDS WILL BE READ AND PROCESSED WITHIN THE LOOP BODY. */
/*********************************************************************/
"EXECIO 0 DISKR "FILEIN" (OPEN" /* OPEN "DDNAME" */


Quote:
I do not know what this means. CA7 schedules/submits jobs. How do you execute something "in ca7"?

I mean to say when I am demanding the job(which has the REXX execution steps) thru CA7 schedular its abending. When I am submitting job from my PDS in TSO then job is giving RC=0.

Quote:
Suggest you use IKJEFT01 instead of IRXJCL

I did used "IKJEFT01". Changed "SYSEXEC" to "SYSPROC" to pass the PDS name where my REXX code is present. But it is also performing as same.
Sysout is and RC=12
INVALID COMMAND NAME SYNTAX
1 *-* /*%NOCOMMENT*/
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
7 *-* /**/ 00117
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
8 *-* /**/ 00118
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
9 *-* /**/ 00119
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
10 *-* /**/ 00120
+++ RC(-3) +++
EXECIO error. Unrecognized or ambiguous keyword option found.
INVALID COMMAND NAME SYNTAX
12 *-* /**/ 00122
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
13 *-* /**/ 00123
+++ RC(-3) +++
INVALID COMMAND NAME SYNTAX
14 *-* /**/ 00124
+++ RC(-3) +++
15 +++ DO WHILE (RETURN_CODE ¬= EOFFLAG) /**/ 00125
Error running REXX1, line 15: Logical value not 0 or 1
READY
END
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 23, 2009 9:57 pm
Reply with quote

Hello,

Please post the "I"nfo from tso/ispf 3.4 for your pds. CA7 may expect lrecl 80 and this pds may be otherwise defined. Compare the Info from your pds against a pds that is successfully used by ca7 to submit jobs.
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Jan 23, 2009 10:58 pm
Reply with quote

Dick,

below is the PDS information:
Quote:
. . . . . . . . . . . . . . . . . . . . . . . . . .
Data Set Information
Command ===>
More: +
Data Set Name . . . . : A012345.TEST.IEBGENER

General Data Current Allocation
Management class . . : **None** Allocated tracks . : 1
Storage class . . . : **None** Allocated extents . : 1
Volume serial . . . : TEMPV8
Device type . . . . : 3390
Data class . . . . . : **None** Current Utilization
Organization . . . : PO Used tracks . . . . : 1
Record format . . . : FB Used extents . . . : 1
Record length . . . : 80
Block size . . . . : 27920
1st extent tracks . : 1
Secondary tracks . : 1
Data set name type : PDS

Creation date . . . : 2009/01/21 Referenced date . . : 2009/01/21
Expiration date . . : ***None***
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 -> CLIST & REXX

 


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