REXX macro to submit JCL



IBM's Command List programming language & Restructured Extended Executor

REXX macro to submit JCL

Postby Mt68074 » Thu Jun 11, 2009 5:53 pm

Hi,
I need a REXX macro to submit JCL of a COBOL program(not having DB2).JCL is having three steps.COMPILE , LINK & RUN.A flat file is input to the program, which then creates output report.I am new to REXX so please elaborate the necessary steps.
Mt68074
 
Posts: 3
Joined: Thu Jun 11, 2009 5:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: REXX macro to submit JCL

 

Re: REXX macro to submit JCL

Postby MrSpock » Thu Jun 11, 2009 6:09 pm

Huh???

REXX is a programming language. It doesn't submit jobs. Jobs have to be read and placed into the JES Internal Reader, which scans the code, syntax checks it, abd then re-formats it into code that JES understands. REXX doesn't do any of this.

Maybe I don't understand what you're asking for?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: REXX macro to submit JCL

Postby swd » Thu Jun 11, 2009 6:10 pm

Why use a REXX to submit a batchjob? Why not just have an IEBGENER step to do this, such as

//S999   EXEC PGM=IEBGENER                           
//SYSIN    DD DUMMY                                   
//SYSPRINT DD SYSOUT=*                               
//SYSUT1   DD DSN=USERID.TEST.CNTL(MEMBER1),DISP=SHR 
//SYSUT2   DD SYSOUT=(A,INTRDR)
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: REXX macro to submit JCL

Postby Mt68074 » Thu Jun 11, 2009 6:17 pm

Is it possible to execute a program using REXX ??
Mt68074
 
Posts: 3
Joined: Thu Jun 11, 2009 5:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: REXX macro to submit JCL

Postby MrSpock » Thu Jun 11, 2009 6:25 pm

Mt68074 wrote:Is it possible to execute a program using REXX ??


It depends. You run programs all the time is TSO, right? And, in ISPF, right? And you know that a REXX exec running in a TSO address space can invoke TSO commands, and that a REXX exec running in an ISPF address space can invoke both TSO and ISPF commands, right? So, a REXX exec running in either a TSO or ISPF address space can execute a program by using the same TSO or ISPF commands.

If the exec is running pure REXX, (i.e. you're using the IRXJCL REXX Interpreter program) then yes, there are some built-in functions for program invocation.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: REXX macro to submit JCL

Postby Mt68074 » Thu Jun 11, 2009 10:12 pm

Thank you for the details. :)
Mt68074
 
Posts: 3
Joined: Thu Jun 11, 2009 5:41 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post