how to send varibale name from rexx to JCL

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
giri211
Member
Posts: 5
Joined: Thu Aug 27, 2009 11:26 am

how to send varibale name from rexx to JCL

Post by giri211 » Mon Aug 31, 2009 10:20 am

HI ,

i have a requirememt where i need to pass varibale name from rexx to JCL

here is my JCL.

//XXXX JOB (ACCTNUM,),'SEARCHES FOR STRING',
// CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// '')
//NEWDD DD DSN=XXXX.ALL.JCLS1,
// DISP=SHR
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
SRCHFOR 'JCLLIB'
/*


The rexx program should take input as "JCLLIB" and it has to pass
the same value to the JCL.

Please give me the rexx program for achieving the same.

Lot of thanks in advance.
Giri

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Mon Aug 31, 2009 3:04 pm

I don't really understand what your topic is getting at. Could you maybe provide us with an overview of your process, with sample input and sample output.

giri211
Member
Posts: 5
Joined: Thu Aug 27, 2009 11:26 am

Post by giri211 » Mon Aug 31, 2009 3:36 pm

HI Spock,
thx for your reply.

The job of this JCL is same as ISPF 3.14( SUPER ce)

now in the JCL i have given
//SYSIN DD *
SRCHFOR 'XXXXX'
/*


i want here "XXXXX" should be dynamic means the user with the help of rexx program will give the input in rexx and this JCL should accept the input given in the rexx program and submit this JCL

can u please give me that rexx program ?

i think i am some wht clear now

thanks
Giri

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others