View previous topic :: View next topic
|
Author |
Message |
Hari1282
New User
Joined: 31 Mar 2008 Posts: 7 Location: Pune, INDIA
|
|
|
|
Hi,
Why always we need to declare S9(4) COMP in Linakage Section while passing the data through PARM parameter in JCL. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Because that is required! The comp field contains the length of the passed data. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Any parm data passed by JES to a program is defined as:
Length s9(4) binary
data --------
you define the data, the length is populated by jes to tell your program how much data is being passed.
the above is the jes format.
when you define your own data structures that are used in calls, it normally does not have the length as the first field, because the application has not defined it as such. |
|
Back to top |
|
|
|