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

Issue (LASTCC=20) when executing a CLIST from a job!


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

New User


Joined: 07 Dec 2007
Posts: 2
Location: Chennai

PostPosted: Fri Nov 21, 2008 9:02 pm
Reply with quote

Hi

When i try to execute the following lines of code in CLIST using a REXX tool, it works fine.
Code:
ISPEXEC SELECT PGM(UTIMAIN) NEWAPPL(&ZAPPLID) NEWPOOL PASSLIB PARM(FDSN('&ILIBLIB(&IMEMBER)') TDSN('&COPY2PDS') CMD(C,&ARC.&OPT.VAR(
NO)) RETURN)                                                                   
SET UTIMAINRC = &LASTCC                                                         
SET UTIMAINRC = 0         


But when i try to execute the REXX tool itself using a JCL, it gives LASTCC as 20.

Code:
ISPEXEC SELECT PGM(UTIMAIN) NEWAPPL(&ZAPPLID) NEWPOOL PASSLIB PARM(FDSN('&ILIBLIB(&IMEMBER)') TDSN('&COPY2PDS') CMD(C,&ARC.&OPT.VAR(
NO)) RETURN)                                                                   
SET UTIMAINRC = &LASTCC                                                         
SET UTIMAINRC = 20         


Can someone help me out to resolve this issue?
Thanks...

Regards,
Sathiya.R
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Nov 21, 2008 9:07 pm
Reply with quote

Is your batch job running ISPF? If not, or if you don't know, search the forums for the keyword ISPSTART to see what an ISPF batch jobstream should look like.
Back to top
View user's profile Send private message
Sathiya_08

New User


Joined: 07 Dec 2007
Posts: 2
Location: Chennai

PostPosted: Fri Nov 21, 2008 9:15 pm
Reply with quote

Kevin,
Thanks for the prompt response.
I am not sure about ISPSTART. Here is the JCL which executes the rexx tool which in turn invokes the CLIST.

Code:
//RPTREXX  EXEC PGM=IKJEFT01,                       
//         DYNAMNBR=20,                             
//         PARM='%REXXTOOL'                           
//SYSTSIN  DD DUMMY                                 
//SYSTSPRT DD SYSOUT=*                             
//SYSEXEC  DD DSN=A.B.C,DISP=SHR   
//CARDIN   DD *                                     
/*                                                 
//*                       


Regards,
Sathiya.R
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Nov 21, 2008 10:40 pm
Reply with quote

ISPEXEC is an ISPF thing... you can not use it without first starting ISPF. As SuperK mentioned, search for ISPSTART.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sat Nov 22, 2008 12:27 am
Reply with quote

Here's a few topics to look at:

www.ibmmainframes.com/viewtopic.php?t=35200
www.ibmmainframes.com/viewtopic.php?t=32122
www.ibmmainframes.com/viewtopic.php?t=30366
www.ibmmainframes.com/viewtopic.php?t=17588
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts Facing ABM3 issue! CICS 3
Search our Forums:

Back to Top