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
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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