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
 

 

BPXBATCH PARM TOO LONG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 157
Location: South Africa

PostPosted: Fri Jan 27, 2012 5:07 pm    Post subject: BPXBATCH PARM TOO LONG
Reply with quote

Hi,

I am using BPXBATCH to run a shell script but the directory name is too long. How can I use the too long parm. Please suggest.
Here is my BPXBATCH:
Code:
//STEP0001 EXEC PGM=BPXBATCH,REGION=0M                                 
//             PARM='sh /usr/aci/base24eps/v092/b24d/b24d/bin/cardrf b'
//SYSOUT   DD   SYSOUT=*                                               
//*TDIN    DD   PATH='sh /usr/aci/base24eps/v092/b24d/b24d/bin/cardrf b'
//*             ,PATHOPTS=(ORDONh B                                     
//STDOUT   DD   SYSOUT=*                                               
//STDERR   DD   SYSOUT=*   


Error:
3 IEFC605I UNIDENTIFIED OPERATION FIELD.

Thanks,
Abhijit.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Fri Jan 27, 2012 5:28 pm    Post subject:
Reply with quote

Only you says it is too long - you are allowed 100 characters. Suggest you read your error message and understand it - if necessary look in the Messages and Codes manuals. Then you will see your error.
Back to top
View user's profile Send private message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 157
Location: South Africa

PostPosted: Fri Jan 27, 2012 5:40 pm    Post subject:
Reply with quote

Let me show you something:

When I tried with the following code :
PARM='sh /usr/aci/base24eps/v092/b24d/b24d/bin/test1'
The code works well as the full line is between 12-80 cols.
But the code:
PARM='sh /usr/aci/base24eps/v092/b24d/b24d/bin/cardrf b'
is exceeding beyond column 80.
So, I have to continue the directory name in next line.
I tried with below but still no luck:

PARM='sh /usr/aci/base24eps/v092/b24d/b24d/\||
\bin/cardrf b'

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jan 27, 2012 5:45 pm    Post subject: Reply to: BPXBATCH PARM TOO LONG
Reply with quote

read the jcl manual for the rules about PARM data continuation
Back to top
View user's profile Send private message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 157
Location: South Africa

PostPosted: Fri Jan 27, 2012 5:57 pm    Post subject:
Reply with quote

Hi Enrico,

Can you please provide the manual or any link to check the continuation of parm.

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jan 27, 2012 6:01 pm    Post subject: Reply to: BPXBATCH PARM TOO LONG
Reply with quote

odd that You did not notice at the top of the page the link "IBM Manuals"
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Fri Jan 27, 2012 6:23 pm    Post subject: Reply to: BPXBATCH PARM TOO LONG
Reply with quote

Did you "paste" your JCL? There is a comma missing after =0M.

You can also "pull" your PARM way to the left to get more in.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Fri Jan 27, 2012 6:53 pm    Post subject: Re: BPXBATCH PARM TOO LONG
Reply with quote

abhijit.nayak01 wrote:
Hi,

I am using BPXBATCH to run a shell script but the directory name is too long. How can I use the too long parm. Please suggest.
Here is my BPXBATCH:
Code:
//STEP0001 EXEC PGM=BPXBATCH,REGION=0M                                 
//             PARM='sh /usr/aci/base24eps/v092/b24d/b24d/bin/cardrf b'
//SYSOUT   DD   SYSOUT=*                                               
//*TDIN    DD   PATH='sh /usr/aci/base24eps/v092/b24d/b24d/bin/cardrf b'
//*             ,PATHOPTS=(ORDONh B                                     
//STDOUT   DD   SYSOUT=*                                               
//STDERR   DD   SYSOUT=*   


Error:
3 IEFC605I UNIDENTIFIED OPERATION FIELD.

Thanks,
Abhijit.


Definitely the comma. Your error is on line 3. You have JOB card (which you haven't shown, but I think we can assume :-) ), EXEC card, line 3 if PARM is attached to tje EXEC card would be the DD for SYSOUT.

Instead, a lonely PARM has been found as the third card in your deck. And PARM is an UNIDENTIFIED jcl statement.

Maybe with the PATH for STDIN you can even remove the path from the PARM anyway? Just the path needed, not the reference to the script.
Back to top
View user's profile Send private message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 157
Location: South Africa

PostPosted: Fri Jan 27, 2012 7:31 pm    Post subject:
Reply with quote

That one was typo error from my side which I later fixed. Temporarily I asked to ADMIN to reduce the name of the script so that I can use it in one line. I used it and ran successfully.

Enrico,

There are lots of manuals and I was not sure which one I have to look for BPXBATCH and also I was running out of time, so, sorry I used the above solution.

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jan 27, 2012 7:36 pm    Post subject: Reply to: BPXBATCH PARM TOO LONG
Reply with quote

Quote:
There are lots of manuals and I was not sure which one I have to look for BPXBATCH and also I was running out of time,


your running out of time is not our concern
and the PARM length is not a BPXBATCH problem, just a JCL problem
any JCL using the PARM clause might benefit by how to use a PARM up to its maximum allowed length
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Fri Jan 27, 2012 8:00 pm    Post subject: Reply to: BPXBATCH PARM TOO LONG
Reply with quote

Code:
//STEP0001 EXEC PGM=BPXBATCH,REGION=0M,
// PARM='sh ls                                                      -l'
//STDOUT   DD   SYSOUT=*
//STDIN    DD   PATH='/usr'
//STDERR   DD   SYSOUT=*


'sfunny. Don't you suspect this would work? Which has a PARM value longer than your example.

Why did you show us JCL with a "typo" which just happens to give you the exact message you were querying with us? And which can't be achieved anyway with a PARM even longer than you are specifying.

When you do something dumb, 'fess up. Everyone has done it sometime before. But to try to hide it?

Maybe you found it after posting. In which case, why didn't you tell us? Save us all looking at it and concentrate on what your new "problem" would then be. Nothing.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 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 Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm
No new posts DFSORT split long VB lines efficiently BridgetBrackenbury DFSORT/ICETOOL 2 Fri Feb 12, 2016 5:10 am


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