View previous topic :: View next topic
|
Author |
Message |
srvk_2k2
New User
Joined: 07 May 2008 Posts: 36 Location: Chennai
|
|
|
|
Hi,
Can we omit the Linkage section when coding the Cobol program under UNIX Platform? I have seen few exisitng programs which don't have the statement ' LINKAGE SECTION' coded but still the PROCEDURE DIVISION is having the USING verb with some parameters defined under WORKING-STORAGE SECTION.
Thanks,
Saravana |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
This is a Mainframe forum. What "UNIX Platform" do you mean?
Seems simple enough for you to try. Are you sure of what you have seen? No Copybooks? |
|
Back to top |
|
|
srvk_2k2
New User
Joined: 07 May 2008 Posts: 36 Location: Chennai
|
|
|
|
Yes Bill. There are copy books but there is no para for LINKAGE SECTION.
Thanks,
Saravana |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Compile one of the programs. Paste the relevant output from the compile here, in the Code tags. Let us know what machine/OS and Cobol compiler you are using.
What do you mean by "no para for LINKAGE SECTION"? You mean even after copybooks are expanded there is no LINKAGE SECTION? |
|
Back to top |
|
|
srvk_2k2
New User
Joined: 07 May 2008 Posts: 36 Location: Chennai
|
|
|
|
Yes Bill.
I have compiled the program and see below the details-
Variables defined under WS-
1325 01 Ws-PARAM-IN.
1326 03 Wx-PARAM-LEN PIC XX COMP-X.
1327 03 Wx-PARAM-LOC PIC X(65) VALUE SPACES.
1328
And here is the PROCEDURE DIVISION-
2470 PROCEDURE DIVISION USING Ws-PARAM-IN.
I don't find the word 'LINKAGE' in the compile listing itself. It's on UNIX platform.
Thanks,
Saravana |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
At the top of your listing there must be some indication of what Cobol compiler it is. Post it here. Look up the manual for that product. COMP-X is not something in IBM Cobol that I'm aware of.
You already said it is a "UNIX platform". I am asking so that we can judge whether your question relates to Mainframes or something else. |
|
Back to top |
|
|
srvk_2k2
New User
Joined: 07 May 2008 Posts: 36 Location: Chennai
|
|
|
|
Thank you Bill. It's * Micro Focus Server Express V4.0 revision 000 Compiler
Thanks,
Saravana |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
OK, so you have to find a Micro Focus forum if looking in the manuals that you have does not explain.
Good luck.
Topic locked.
EDIT. It seems you could be using that compiler with AIX on an IBM box. However, I can find no references indicating that PROCEDURE DIVISION USING can name anything other than items in the LINKAGE SECTION.
Topic unlocked for now. |
|
Back to top |
|
|
|