IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL Linkage section in UNIX Platform


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2012 1:52 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2012 1:57 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2012 2:19 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2012 2:28 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top