Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Issue (LASTCC=20) when executing a CLIST from a job!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Issue (LASTCC=20) when executing a CLIST from a job!
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

Moderator Team Head


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

PostPosted: Fri Nov 21, 2008 9:07 pm    Post subject: Reply to: Issue (LASTCC=20) when executing a CLIST from a jo
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    Post subject:
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

Senior Member


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

PostPosted: Fri Nov 21, 2008 10:40 pm    Post subject: Reply to: Issue (LASTCC=20) when executing a CLIST from a jo
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

Moderator Team Head


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

PostPosted: Sat Nov 22, 2008 12:27 am    Post subject: Reply to: Issue (LASTCC=20) when executing a CLIST from a jo
Reply with quote

Here's a few topics to look at:

http://www.ibmmainframes.com/viewtopic.php?t=35200
http://www.ibmmainframes.com/viewtopic.php?t=32122
http://www.ibmmainframes.com/viewtopic.php?t=30366
http://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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm
No new posts Error executing Java program in OSGI ... danik56 CICS 0 Thu Apr 26, 2018 12:16 am
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts CICS-MQ connection setup issue kaushikv CICS 3 Wed Mar 21, 2018 8:10 pm
No new posts Need Help!!CEE library issue while br... kaushikv CICS 9 Fri Mar 09, 2018 6:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us