View previous topic :: View next topic
|
Author |
Message |
somnath
New User
Joined: 21 Mar 2005 Posts: 18 Location: India
|
|
|
|
Can somebody help me out on the following:
While Passing the PARM from the JCL to a Cobol program we declare the Length of the Parm in the Linkage as a variable.
What is the use of this Length variable? Why do we need to specify it?
What can be the Maximum length of the Parm field?
If we don't specify the Length field will it cause any abend? If so what type of abend will be generated?
________
Somnath |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
Back to top |
|
|
somnath
New User
Joined: 21 Mar 2005 Posts: 18 Location: India
|
|
|
|
Thanks Krisprem.
I got the answer for the Maximum length of the parm. Can u please let me know the rest? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
somnath wrote: |
While Passing the PARM from the JCL to a Cobol program we declare the Length of the Parm in the Linkage as a variable. |
Well, how else would you know how long it was?
Quote: |
What is the use of this Length variable? Why do we need to specify it? |
Because it is being passed to you and you need to know the length of the data being passed to you.
Quote: |
If we don't specify the Length field will it cause any abend? If so what type of abend will be generated? |
If you don't specify the length, you will have garbage in the first couple bytes and might get a S0C4 if you reach too far. |
|
Back to top |
|
|
|