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
 

 

To pass value to JCL PARM from ESP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
narayana.kr

New User


Joined: 16 Feb 2010
Posts: 5
Location: Bangalore

PostPosted: Mon Aug 23, 2010 2:04 pm    Post subject: To pass value to JCL PARM from ESP
Reply with quote

Please can you give an example to pass value to JCL PARM from ESP?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 23, 2010 2:19 pm    Post subject:
Reply with quote

Please explain exactly what it is that you want to do.
Back to top
View user's profile Send private message
narayana.kr

New User


Joined: 16 Feb 2010
Posts: 5
Location: Bangalore

PostPosted: Mon Aug 23, 2010 4:06 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 23, 2010 4:14 pm    Post subject:
Reply with quote

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
View user's profile Send private message
narayana.kr

New User


Joined: 16 Feb 2010
Posts: 5
Location: Bangalore

PostPosted: Mon Aug 23, 2010 5:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 23, 2010 11:34 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am


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