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
 

 

how to check whether the job ran fine or not using rexx ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Arun Kumar S

New User


Joined: 23 Jan 2009
Posts: 14
Location: Bangalore

PostPosted: Tue Feb 24, 2009 4:48 pm    Post subject: how to check whether the job ran fine or not using rexx ?
Reply with quote

Hi All,

I'm submitting a jcl using rexx, but i'm not able to check the MAXCC code.

how to check whether the job ran fine or not using rexx ?

Please help me.

CODE:

/*-------------------------------------------------------------------*/
/* SYNTAX: JCLSUB */
/*********************************************************************/
/* CREATE JCL RECORDS */
/*********************************************************************/
JCL.0 = 2
JCL.1 = '//NBKBMC3X JOB (NOFR),TESTJOB,CLASS=0,MSGCLASS=X'
JCL.2 = '//DUMMY EXEC PGM=IEFBR14'
/*********************************************************************/
/* ALLOCATE A INTRDR DD */
/*********************************************************************/
EXITRC = BPXWDYN("ALLOC DD(SUB) SYSOUT WRITER(INTRDR)")
IF EXITRC <> 0 THEN SAY 'ALLOCATE ERROR ON INTRDR RC='EXITRC
/*********************************************************************/
/* WRITE THE STEM TO THE INTRDR DD */
/*********************************************************************/
ADDRESS MVS "EXECIO * DISKW SUB (FINI STEM JCL."
EXITRC = RC
IF EXITRC <> 0 THEN SAY 'EXECIO ERROR ON INTRDR RC='EXITRC
EXITRC = BPXWDYN("FREE DD(SUB)")
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: Tue Feb 24, 2009 5:00 pm    Post subject: Reply to: how to check whether the job ran fine or not using
Reply with quote

Your exec looks to me as if it's written to function in a non-TSO address space. Am I correct? If so, then I have to presume that you can't use the TSO STATUS and OUTPUT commands. Can you access your JES spool interface tool (i.e. SDSF or ISPF or Sysview) via a batch call?
Back to top
View user's profile Send private message
Arun Kumar S

New User


Joined: 23 Jan 2009
Posts: 14
Location: Bangalore

PostPosted: Tue Feb 24, 2009 5:22 pm    Post subject: Reply to: how to check whether the job ran fine or not using
Reply with quote

could you please post any sample code to check the way you said?
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: Tue Feb 24, 2009 6:45 pm    Post subject: Reply to: how to check whether the job ran fine or not using
Reply with quote

I don't understand. Sample code for what - processes that have already been talked about in great detail already?
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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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