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

Execute PROC with parameters.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepthi Budhiwant

New User


Joined: 15 Dec 2008
Posts: 6
Location: Pune

PostPosted: Fri Jan 09, 2009 6:01 pm
Reply with quote

Hi All,

I m trying to execute a procedure with parameters as,

Code:
//STEP1 EXEC PROC=PROCABC,
//                   CONDN=ONLY,
//                   INFILE=XYZ.ABC.DEF

In the proc I have used CONDN and INFILE as symbolic parameters.
When I execute the job, it gives JCL error that there are excessive number of positional parameters on EXEC step.

Can anyone throw light on the same.

Thanks,
Deepthi

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Jan 09, 2009 6:07 pm
Reply with quote

Hi Deepthi,

Can you please post the error you got.
Also,you can try below code:

Code:
//STEP1 EXEC PROCABC,
// CONDN=ONLY,
// INFILE=XYZ.ABC.DEF



Thanks,
Abhishek

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jan 09, 2009 6:15 pm
Reply with quote

Post the output that shows the error
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 09, 2009 6:17 pm
Reply with quote

Quote:
When I execute the job, it gives JCL error that there are excessive number of positional parameters on EXEC step.
Use BBCode to post the JCL expansion that you're getting -- it's hard to diagnose a problem without seeing what the system thinks you're doing.
Back to top
View user's profile Send private message
Deepthi Budhiwant

New User


Joined: 15 Dec 2008
Posts: 6
Location: Pune

PostPosted: Fri Jan 09, 2009 6:22 pm
Reply with quote

Hi Abhishek,

As I mentioned the error msg is

EXCESSIVE NUMBER OF POSITIONAL PARAMETERS ON THE EXEC STATEMENT

I had already tried with the code you suggested, but it still threw the same error.

Thanks,
Deepthi
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 09, 2009 6:25 pm
Reply with quote

1, 2, three....

post the output, until somebody sees Your output, there will only be useless network noise

the previous suggestion does not work because the two exec formats are equivalent
see the exec syntax in the jcl manual
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jan 09, 2009 6:25 pm
Reply with quote

As previously requested, post the output / expanded JCL showing exactly what we need to help you.

We do request this information for a good reason. Being able to help you !!!
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Jan 09, 2009 6:34 pm
Reply with quote

Hi Deepthi,

What I feel is, you might be specifying a parameter in the exec step
which you may not be using in the Proc PROCABC.

Please check it out and please do post the exact JCL and the Exact error to get a feasible solution.




Thanks,
Abhishek
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Fri Jan 09, 2009 6:44 pm
Reply with quote

hi Deepthi,

Use the below code in your job while calling the proc... hope it works.. let me know the details after execution.

//STEP1 EXEC PROCABC,
// CONDN=ONLY,
// INFILE=XYZ.ABC.DEF
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jan 09, 2009 6:56 pm
Reply with quote

Mukesh Pandey

We have asked for the OP to post his JCL and error messages so that we can help him. Without this information all that you are doing is confusing matters.

Besides, how does your suggestion differ from the one originally posted ?
It does NOT so how do you think that this will suddenly start to work ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 09, 2009 7:00 pm
Reply with quote

before suggesting alternate formats of the exec statement
did anybody care to look at ...

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B670/16.1.4?SHELF=IEA2BK81&DT=20070427231644&CASE=

and realize that ( as said before ) that
Code:
//s  exec something
and
Code:
//s exec proc=something

are exactly the same thing
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Fri Jan 09, 2009 7:28 pm
Reply with quote

Well ..., deepthi post the jcl error u are getting... use jj before submiting the job...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jan 09, 2009 7:43 pm
Reply with quote

Mukesh Pandey wrote:
Well ..., deepthi post the jcl error u are getting... use jj before submiting the job...

JJ is probably site specific, used by some JCL scan / pre processor that is installed at your site, and possibly not at the OP site.

It certainly is not installed where I am working so all I recieved was
IKJ56500I COMMAND JJ NOT FOUND
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: Sat Jan 10, 2009 12:35 am
Reply with quote

Hello,

Quote:
hope still lies if u r willing to learn.
If you are willing to learn, you will be willing to follow directions. . . Is there some reason you have not yet posted the requested information?

People here can tell what is causing the problem once you provide the info (the expanded jcl). You should not attempt to determine what needs to be posted and what does not because if you knew this correctly, you would also know why the problem.

The job should be submitted with MSGLEVEL=(1,1) to make sure the diagnostic info is shown.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Jan 10, 2009 2:46 pm
Reply with quote

Hi,

With this
Quote:
IEF640I EXCESSIVE NUMBER OF POSITIONAL PARAMETERS xxxx
at the most one can tell you..
Quote:
Commonly caused by a misplaced comma, duplication of a keyword, or an empty operand field. (xxxx indicates the approximate location or field in which the error occurred.)
Back to top
View user's profile Send private message
umakanth.ravirala

New User


Joined: 04 Sep 2007
Posts: 15
Location: Halifax, United Kingdom

PostPosted: Sat Jan 10, 2009 3:22 pm
Reply with quote

Deepti,

Hope you are not using the parameters mentioned in JCL anywhere in PROC, Probably no one can answer exactly unless and untill your complete JCL & PROC is posted here.
Back to top
View user's profile Send private message
Deepthi Budhiwant

New User


Joined: 15 Dec 2008
Posts: 6
Location: Pune

PostPosted: Sat Jan 10, 2009 7:36 pm
Reply with quote

Hi All,

My apologies for late response.
Here is the code snippet i've been using:

Code:
//PROC01 PROC
//STEP1 EXEC PGM=SORT, COND=&CONDN
//SORTIN     DD DSN=&INPUT,
//                DISP=SHR,
//SORTOUT  DD DSN=&OUTPUT,
//                DISP=SHR,
//SYSIN       DD DSN=<LIBRARY_NAME>(<PARAMETER_NAME>)
//* The parameter contains a simple sort control statement i.e
//*SORT FIELDS=COPY
//*since procs can't have instream data so I've used parameter.
//  PEND

//* PROC CALLED HERE

//STEP01  EXEC PROC=PROC01,
//             CONDN=ONLY,
//             INPUT=ABC.DEF,
//             OUTPUT=PQR.STU,
//* there are 5 more job steps identical to the STEP01 just calling PROC with different conditions and file names.
I've posted the error message in the earlier post.

Thanks,
Deepthi

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jan 10, 2009 7:49 pm
Reply with quote

Okay, first we asked you to post the JCL expansion from the job, not your interpretation of the JCL. If you can't post a copy of the job output (not what you want us to see) you're not likely to get the help you say you want.

Second, your original post was
Code:
//STEP1 EXEC PROC=PROCABC,
//                   CONDN=ONLY,
//                   INFILE=XYZ.ABC.DEF
and now your JCL looks like
Code:
//STEP01 EXEC PROC=PROC01,
// CONDN=ONLY,
// INPUT=ABC.DEF,
// OUTPUT=PQR.STU,
so it is no longer clear if you're talking about one problem, two problems, or what.

Third, without posting the job output we don't know if your error message is on the first execution, the second, or the sixth -- so what you posted may be perfectly correct (it isn't, by the way since there's a trailing comma on the OUTPUT= parameter that will guarantee a JCL error if the JCL is as presented) but the error could be on a different step.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Jan 10, 2009 8:05 pm
Reply with quote

Well Robert, you handled that rather more diplomatically than I would have.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jan 10, 2009 8:22 pm
Reply with quote

Quote:
Here is the code snippet i've been using:


people trying to help you
do not care about what You say You have been using,
care about the output of Your run
the interpreter/converter will print the jcl statements,
before the substitution
after the substitution pointing the changes
giving a strong hint on Your mistake


until You post what You are asked its' just useless blabbering and a loss of time
if You want to be out of the s**t do what You are asked not what You think is right
if Your thoughts were right You would be on the other side of the fence
( replying, not asking )

Quote:
no matter u fail,hope still lies if u r willing to learn.

no... there is hope if You do what You are told/asked ( nicely until now )
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Jan 10, 2009 9:15 pm
Reply with quote

...And please use BB code tags when you post some code as used by Robert. Notice your post is been edited to add BBcode and I was not sure that should I add this line
Quote:
//* there are 5 more job steps identical to the STEP01 just calling PROC with different conditions and file names.
in BBcode or not so left outside..
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Jan 12, 2009 10:28 am
Reply with quote

Expat... use typerun=scan ................... in your job card......
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Jan 12, 2009 10:44 am
Reply with quote

It's TYPRUN not TYPERUN and expat is not the one with the JCL error.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Jan 12, 2009 10:48 am
Reply with quote

Terry..... the reply is based on the discussion.... if jj does not work.. a simple way is use typrun=scan....
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 12, 2009 12:35 pm
Reply with quote

Hello,

The bottom line is "JJ" etc. are site specifc commnads - I use "JEM" and "JSCAN" to check JCL-syntax which have no meaning outside my shop & if they have it's just a coincidence..

-Ad
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top