View previous topic :: View next topic
|
Author |
Message |
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Possibly there is something i am missing, but the errors posted do not match the rexx code posted. . .
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 |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Dick,
While copying the REXX code I removed the comments, that is why you found mis match in errors.
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
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 |
|
|
|