Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
XDC using REXX... Facing problem.. pleaase guide
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
seshagiri.N
Warnings : 1

New User


Joined: 05 Aug 2008
Posts: 14
Location: Chennai

PostPosted: Mon Aug 18, 2008 8:47 pm    Post subject:
Reply with quote

I got the same result. icon_sad.gif icon_sad.gif icon_sad.gif

Please have a look at my JCL and REXX program:

JCL:

Code:
JOB CARD
//STEPLIB DD DSN=SYS7.GLOBAL.ISPLLIB,DISP=SHR
//ISPMLIB DD DSN=SYS7A.ISPF.ISPMLIB,DISP=SHR
//ISPPLIB DD DSN=SYS7A.ISPF.ISPPLIB,DISP=SHR
//ISPSLIB DD DSN=SYS7A.ISPF.ISPSLIB,DISP=SHR
//ISPTLIB DD DSN=SYS7A.ISPF.ISPTLIB,DISP=SHR
//SYSPROC DD DSN=SYS7A.ISPF.CLIST,DISP=SHR   
//TSOBATCH EXEC PGM=IKJEFT1A,DYNAMNBR=200   
//SYSEXEC DD DSN=NBDKYGS.REXX.EXEC,DISP=SHR 
//SYSPRINT DD SYSOUT=*                       
//SYSTSPRT DD SYSOUT=*                       
//SYSTSIN DD *
EXEC1         
/*           


REXX:

Code:
/*****REXX******/
ADDRESS TSO                                             
"ALLOC F(ISFIN) TRACKS SPACE(1) REU" /* USED BY SDSF */ 
"ALLOC F(ISFOUT) NEW DELETE REU " , /* USED BY SDSF */   
"TRACKS SPACE(100,100) LRECL(133) RECFM(F,B,A) DSORG(PS)"
"ALLOC F(TEMPPRT) DA('NBDKYGS.REXX.JOB2(OUT5)') SHR REUSE"       
JOBID = "JOB09601"                                               
QUEUE "PRE IQ1TSACE" /* SDSF COMMANDS IN BATCH*/                 
QUEUE "ST"                                                       
QUEUE "FILTER JOBNAME " JOBID                                   
QUEUE "++S"                                                     
QUEUE "PRINT FILE TEMPPRT" /* PRINT TO TEMP DATASET */           
QUEUE "PRINT 1 999999"                                           
QUEUE "PRINT CLOSE"                                             
QUEUE "END"                                                     
QUEUE "EXIT"                                                     
"EXECIO" QUEUED()" DISKW ISFIN (FINIS" /* INPUT TO SDSF BATCH */
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++25,80')"/* INVOKE SDSF */
EXIT                                                                 



please tell me where i did mistake.
Back to top
View user's profile Send private message
References
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 510
Location: work

PostPosted: Mon Aug 18, 2008 10:04 pm    Post subject: Reply to: XDC using REXX... Facing problem.. pleaase guide
Reply with quote

The exec statement marks the beginning of the step.
Code:
//TSOBATCH EXEC PGM=IKJEFT1A,DYNAMNBR=200

The DD statements should be after it. And STEPLIB is first after EXEC.
Back to top
View user's profile Send private message
seshagiri.N
Warnings : 1

New User


Joined: 05 Aug 2008
Posts: 14
Location: Chennai

PostPosted: Mon Aug 18, 2008 10:16 pm    Post subject:
Reply with quote

I tried this ... but the same result.

I am getting MAXCC=0, when job submitted.

and got

Code:

READY                                                                           
EXEC1                                                                           
    25 *-* ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++25,80')"/* INVOKE SDSF */
       +++ RC(-3) +++                                                           
READY                                                                           
END                                                                             
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 510
Location: work

PostPosted: Mon Aug 18, 2008 10:34 pm    Post subject: Reply to: XDC using REXX... Facing problem.. pleaase guide
Reply with quote

Use of ISPEXEC requires an ISPF environment (which is why you need the DD statements). So, start ISPF first, passing it the parm to start your exec

Code:
//SYSTSIN DD *         
 ISPSTART CMD(%exec1) 
/*EOF                   
Back to top
View user's profile Send private message
seshagiri.N
Warnings : 1

New User


Joined: 05 Aug 2008
Posts: 14
Location: Chennai

PostPosted: Tue Aug 19, 2008 4:12 pm    Post subject:
Reply with quote

Job ended with return code of 0998. I found this in the spool.

Code:
READY                                                                       
ISPSTART CMD(%EXEC1)                                                         
CMG999   Message ISPT036 - ISPT036  message not found in 'ISPMLIB' library. 
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...

PostPosted: Tue Aug 19, 2008 4:23 pm    Post subject:
Reply with quote

My first guess would be that you have not concatenated all of the ISPMLIb libraries allocated to your ISPF online session into the batch version.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2