Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4648
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: 2033
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: 4648
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
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us