Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

COBOL Linkage section in UNIX Platform

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Jul 10, 2012 1:35 pm    Post subject: COBOL Linkage section in UNIX Platform
Reply with quote

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

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Jul 10, 2012 1:52 pm    Post subject:
Reply with quote

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

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Jul 10, 2012 1:54 pm    Post subject:
Reply with quote

Yes Bill. There are copy books but there is no para for LINKAGE SECTION.

Thanks,
Saravana
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Jul 10, 2012 1:57 pm    Post subject:
Reply with quote

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

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Jul 10, 2012 2:04 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Jul 10, 2012 2:19 pm    Post subject:
Reply with quote

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

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Jul 10, 2012 2:22 pm    Post subject:
Reply with quote

Thank you Bill. It's * Micro Focus Server Express V4.0 revision 000 Compiler

Thanks,
Saravana
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Tue Jul 10, 2012 2:28 pm    Post subject:
Reply with quote

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

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us