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: 4649
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: 4649
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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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