IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass parms IN EXEC statement


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
GiridharanN

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Mon May 14, 2007 10:16 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon May 14, 2007 10:17 pm
Reply with quote

Is PSB a valic symbolic coded into your proc
Back to top
View user's profile Send private message
GiridharanN

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Tue May 15, 2007 5:10 pm
Reply with quote

Yes. PSB is a valid symbolic coded in PROC1.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 15, 2007 5:21 pm
Reply with quote

What does the proc PROC1 look like?
Back to top
View user's profile Send private message
GiridharanN

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Tue May 15, 2007 5:44 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 15, 2007 5:47 pm
Reply with quote

I think that William wanted to see the JCL that form the PROC, as do I
Back to top
View user's profile Send private message
GiridharanN

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Tue May 15, 2007 5:59 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue May 15, 2007 6:05 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Wed May 16, 2007 12:05 am
Reply with quote

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 16, 2007 12:24 am
Reply with quote

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

New User


Joined: 05 Apr 2007
Posts: 27
Location: chennai

PostPosted: Wed May 16, 2007 4:54 pm
Reply with quote

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

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Thu May 17, 2007 6:16 pm
Reply with quote

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

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu May 17, 2007 6:29 pm
Reply with quote

This is related to IMS forum:

Refer to ibmmainframes.com/viewtopic.php?t=20547
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu May 17, 2007 10:43 pm
Reply with quote

Devzee wrote:
This is related to IMS forum:

Refer to ibmmainframes.com/viewtopic.php?t=20547


@Devzee: icon_wink.gif
Back to top
View user's profile Send private message
GiridharanN

New User


Joined: 12 Apr 2007
Posts: 21
Location: Coimbatore

PostPosted: Fri May 18, 2007 3:38 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top