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

What happens if PARM lenght exceeds 100??


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lavanya.purini

New User


Joined: 21 Jun 2007
Posts: 4
Location: hyderabad

PostPosted: Tue Jul 17, 2007 3:00 pm
Reply with quote

Max length we can give thru PARM parameter is 100. What if we send PARM of lenght more than 100 chars? Will it give any JCL error or any abend??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jul 17, 2007 3:02 pm
Reply with quote

did You try??
Back to top
View user's profile Send private message
lavanya.purini

New User


Joined: 21 Jun 2007
Posts: 4
Location: hyderabad

PostPosted: Tue Jul 17, 2007 3:08 pm
Reply with quote

No
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 17, 2007 3:23 pm
Reply with quote

Please try and let us know... icon_biggrin.gif

O.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Jul 17, 2007 5:19 pm
Reply with quote

Or perhaps we should grind our work to a halt to save you one minute?
Back to top
View user's profile Send private message
lavanya.purini

New User


Joined: 21 Jun 2007
Posts: 4
Location: hyderabad

PostPosted: Thu Jul 19, 2007 3:21 pm
Reply with quote

I tried it and its giving jcl error as "EXCESSIVE PARAMETER LENGTH IN THE PARM FIELD"

thanks for ur replies...
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Thu Jul 19, 2007 4:15 pm
Reply with quote

Thank you for the answer.
Back to top
View user's profile Send private message
digitalnirmal@hotmail

New User


Joined: 27 Dec 2005
Posts: 1

PostPosted: Fri Jul 20, 2007 11:34 am
Reply with quote

but isn't there a way around?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jul 20, 2007 12:00 pm
Reply with quote

Nirmal,
Quote:
but isn't there a way around


Using PARM parmeter - NO
But we do have other methods for passing data to the program. Use these methods.
Back to top
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Fri Jul 20, 2007 2:15 pm
Reply with quote

Hi
You can use the flat file to pass the information to the program if it's length is more than 100 characters.

Thanks,
Santosh
Back to top
View user's profile Send private message
lavanya.purini

New User


Joined: 21 Jun 2007
Posts: 4
Location: hyderabad

PostPosted: Thu Jul 26, 2007 2:57 pm
Reply with quote

yes we can use flat file to send record of length more than 100 charecters,but thru PARM prameter its not possible.
Back to top
View user's profile Send private message
sundar28

New User


Joined: 30 Jul 2005
Posts: 11
Location: Mysore

PostPosted: Thu Jul 26, 2007 3:23 pm
Reply with quote

lavanya.purini wrote:
yes we can use flat file to send record of length more than 100 charecters,but thru PARM prameter its not possible.


Hi lavanya.purini,

It is possible without using PARM.

You can use SYSIN (in JCL) and ACCEPT to feed to a COBOL program.

This method will not pass the length of the parameter string as the first two bytes. So you have to pass either a fixed length string or length seperated as part of the parameter and interpret it in your program.

Regards
Sundar
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jul 26, 2007 3:26 pm
Reply with quote

Sundar,

Quote:
You can use SYSIN (in JCL) and ACCEPT to feed to a COBOL program.


You are using dataset again.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Jul 26, 2007 3:50 pm
Reply with quote

Hi,

I think, Sundar is talking about 'in-stream' data.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jul 26, 2007 3:53 pm
Reply with quote

Anuj,

Quote:
I think, Sundar is talking about 'in-stream' data.


I do agree, you can pass in-stream data in the job, but not in the proc.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Jul 26, 2007 3:59 pm
Reply with quote

you can;t have a parm more than 100 chars..

Please go thru the following link for more information
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/16.8?DT=20040712170508#HDRXEXPARM

~Vamsi
Back to top
View user's profile Send private message
ug123
Warnings : 1

New User


Joined: 01 Mar 2007
Posts: 39
Location: Chennai

PostPosted: Wed Aug 01, 2007 8:27 am
Reply with quote

Hi all,

But for this i have to change the code also..

If the code runs in production and if i could not touch the code and in this case i can change only the jcl..

Any other way to send data more than 100 characters through jcl.. Because im facing this problem..

Can anyone please help me out..

Thanks,
Ugandar
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Aug 01, 2007 10:24 am
Reply with quote

Ugandar,

Quote:
If the code runs in production and if i could not touch the code and in this case i can change only the jcl..

Why the program edit is not allowed? Any specific reasons for this.
Back to top
View user's profile Send private message
ug123
Warnings : 1

New User


Joined: 01 Mar 2007
Posts: 39
Location: Chennai

PostPosted: Wed Aug 01, 2007 10:43 pm
Reply with quote

Yes the reason is the code is already running in production.. i could not touch the code.. the only thing i can do is i can play with the jcl..

Thanks,
Ugandar
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 Aug 01, 2007 11:22 pm
Reply with quote

Hello,

Quote:
Any other way to send data more than 100 characters through jcl.. Because im facing this problem..
Can anyone please help me out..


No, no one can help you out. If the program needs more than 100 bytes of "parameter" data, the program will have to be changed.

Quote:
the only thing i can do is i can play with the jcl..
This is total nonsense. Why in the world would it be ok to "play" with producton jcl and not the program. Both should follow a promotion process and not just be "thrown in". If the need is urgent, most organizations have an "emergency repair" promotion policy that allows immediate correction of a problem rather than the longer procedure. Once the emergency is resolved, the normal process is followed to somplete the repair.
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 Aug 01, 2007 11:24 pm
Reply with quote

Hello,

If the program now needs more than 100 bytes of "parameter data" and previously it did not, how would the existing code use the new data without being modified?
Back to top
View user's profile Send private message
ug123
Warnings : 1

New User


Joined: 01 Mar 2007
Posts: 39
Location: Chennai

PostPosted: Thu Aug 02, 2007 7:06 am
Reply with quote

The scenario is we are sending the compiler options via parm to a cobol program. Previously we were sending which is not more than 100 bytes but as per the current situation we are supposed to send more than 100 bytes..


Thanks,
Ugandar
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: Thu Aug 02, 2007 7:15 am
Reply with quote

Hello,

Quote:
we are sending the compiler options via parm to a cobol program


If you explain what this does, it will help. What kind of process are you using that requires sending compiler options to a program?

The more you explain, the more likely it is that someone will be able to help.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Aug 02, 2007 7:22 am
Reply with quote

This keeps getting more and more interesting (amusing).
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Aug 02, 2007 10:09 pm
Reply with quote

ug123 wrote:
The scenario is we are sending the compiler options via parm to a cobol program. Previously we were sending which is not more than 100 bytes but as per the current situation we are supposed to send more than 100 bytes..


Thanks,
Ugandar


Have you tried using the abbreviated versions of the compiler options? Why are you sending the compiler options to a cobol program. Instead of telling us what you can not do why don't you explain what you are trying to do, then maybe could help you.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
Search our Forums:

Back to Top