View previous topic :: View next topic
|
Author |
Message |
narayana.kr
New User
Joined: 16 Feb 2010 Posts: 5 Location: Bangalore
|
|
|
|
Please can you give an example to pass value to JCL PARM from ESP? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Please explain exactly what it is that you want to do. |
|
Back to top |
|
|
narayana.kr
New User
Joined: 16 Feb 2010 Posts: 5 Location: Bangalore
|
|
|
|
JCL :
//JOB1 JOB (TEST1),
// CLASS=P,
// MSGCLASS=J,
// USER=V676917
//JOB10 EXEC DB2RUN,
// PRM='ABCD'
//
How to PASS ABCD, value from ESP to the JCL?.
When I start excecuting the ESP, ESP has to pass the PARM value 'ABCD' in the JCL(This Job is Scheduled in the ESP). |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Oh goody, this looks like a game of 20 questions.
What events or whatever determine the value to be used in PRM=
Also, what is the ESP, is it some scheduling package or what |
|
Back to top |
|
|
narayana.kr
New User
Joined: 16 Feb 2010 Posts: 5 Location: Bangalore
|
|
|
|
Yes, it is a Sheduling package.
ESP PROC:
IF %ESPGROUP='SETUP' THEN DO
INVOKE 'CMNPROD.ESP.PROC($STD)'
ENV='PROD'
DBSYS='DB2B'
CL='P'
MCL='J'
R='P'
D='B'
SAR='7'
TAX='P'
AR='P'
ENDDO
/*
We have like this, in similar way I need to map PARM to use in JCL. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you look at how the other substitutions are done in an existing process that works correctly. . .
Then define this one similarly. . . |
|
Back to top |
|
|
|