Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Is it mandatory to declare S9(4) COMP in Linkage Section

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
Hari1282

New User


Joined: 31 Mar 2008
Posts: 7
Location: Pune, INDIA

PostPosted: Tue Apr 15, 2008 5:42 pm    Post subject: Is it mandatory to declare S9(4) COMP in Linkage Section
Reply with quote

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
View user's profile Send private message
References
Craq Giegerich

Senior Member


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

PostPosted: Tue Apr 15, 2008 6:09 pm    Post subject:
Reply with quote

Because that is required! The comp field contains the length of the passed data.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 1671
Location: germany

PostPosted: Tue Apr 15, 2008 6:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1