Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to pass parms IN EXEC statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: How to pass parms IN EXEC statement
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: 8593
Location: Back in jolly old England

PostPosted: Mon May 14, 2007 10:17 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue May 15, 2007 5:21 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 15, 2007 5:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 15, 2007 6:05 pm    Post subject:
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

Site Director


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

PostPosted: Wed May 16, 2007 12:05 am    Post subject:
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

Moderator Team Head


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

PostPosted: Wed May 16, 2007 12:24 am    Post subject: Re: How to pass parms IN EXEC statement
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    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

This is related to IMS forum:

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

CICS Moderator


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

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

Devzee wrote:
This is related to IMS forum:

Refer to http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us