View previous topic :: View next topic
|
Author |
Message |
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
I have a situation where a JCL step executes a proc (IMS updation). The COBOL program that should be executed to update the database is passed as a parameter to this proc (eg, S=PROG1). Now I'd like to pass some parameters to this prog. Is that possible? can u give me an example of the syntax.
My current synatax look slike this:
STEP01 EXEC PROC1,S=PROG1,PSB=XXX.
How to pass parms to PROG1 through this |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is PSB a valic symbolic coded into your proc |
|
Back to top |
|
|
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
Yes. PSB is a valid symbolic coded in PROC1. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What does the proc PROC1 look like? |
|
Back to top |
|
|
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
PROC1 again has a step executing a program called DFSRRC00 to which it passes S (S=PROG1 in the job exec stmt). I m unable to get access to view the source of this DFSRRC00.
PROC1 is used for IMS DB updation. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I think that William wanted to see the JCL that form the PROC, as do I |
|
Back to top |
|
|
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
I may have authorization issues with that.
if u can give me specific questions on the proc, i'll get that information and post it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I appreciate that you may have issues with posting JCL from your site, but there is nothing better than seeing it for yourself in helping to determine problems.
Obviously we will respect your decision either to post or not to post. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
If you cannot post the proc, you will get few specific questions.
If we can see the proc, we can offer suggestions as well as ask specific questions.
If you post only the proc and the execute jcl (we shouldn't need the job card which might have several sensative components), i would hope that the only worrisome values would be dataset names and you could globally edit them to make them non-sensative. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't know, maybe its me, but I can't even determine why the question is being asked. Does that fact that the program is an "IMS updation" have some sort of special meaning?
Seems to me that the program has to be passed parameters via the PARM= JCL statement. Either the PROC step that calls the program has to include the PARM= statement, or the variable could be coded to include it:
//STEP01 EXEC PROC1,S='PROG1,PARM=PARMDATA' |
|
Back to top |
|
|
rameshfoa
New User
Joined: 05 Apr 2007 Posts: 27 Location: chennai
|
|
|
|
I think Giridharan wants this....
DFSRRC00 is a program for which the pgm type,pgm name and PSB are passed in PARM parameter. The question is how to pass parameter to the actual IMS program that is given in PARM of DFRRC00.. |
|
Back to top |
|
|
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
That is my exact requirement. Thanks rameshfoa. Sorry folks. Couldn't visit the site yesterday.
is there any way to pass the parm to the prog. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
@Devzee: |
|
Back to top |
|
|
GiridharanN
New User
Joined: 12 Apr 2007 Posts: 21 Location: Coimbatore
|
|
|
|
Thanks a lot for the help. am using a sysin in my jcl to pass the value to my prog as specified in the link that you provided. |
|
Back to top |
|
|
|