Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can we initialise value in linkage section

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

New User


Joined: 07 Apr 2004
Posts: 4

PostPosted: Wed Apr 07, 2004 5:59 pm    Post subject: Can we initialise value in linkage section
Reply with quote

1. can we initialise value in linkage section.

ex. 01 a pic 9(5) value 90.
Back to top
View user's profile Send private message

mvs_butta

New User


Joined: 23 Dec 2003
Posts: 13

PostPosted: Wed Apr 07, 2004 6:26 pm    Post subject:
Reply with quote

No you cannot use.

Quote:
In the File and Linkage Sections, the VALUE clause must be used only in
condition-name entries.
Back to top
View user's profile Send private message
joice

New User


Joined: 07 Apr 2004
Posts: 4

PostPosted: Mon Apr 19, 2004 12:09 pm    Post subject: Re: cobol
Reply with quote

i use one file that is empfile,
question is in mainprogram i open the file then call the subprograme in the subprogram i read the file empfile then i do some operation in the empfile then i come to the main program then close the file .
in this situation this operation is possible to work or not ,working means how? if it is not working means how ?
Back to top
View user's profile Send private message
leo

New User


Joined: 27 Apr 2004
Posts: 2
Location: brazil

PostPosted: Tue Apr 27, 2004 6:29 am    Post subject:
Reply with quote

hi!

create a image of linkage in work=storage and give it values.

ex:
working-storage section.
1 w-a.
2 w-b pic x(26) value "I don't read the handbook".
linkage section.
1 l-a.
2 l-b pic x(26).
procedure division.
move w-a to w-b.

that's it!
Back to top
View user's profile Send private message
bryan-yang

New User


Joined: 16 Apr 2006
Posts: 16
Location: BeiJing, China

PostPosted: Thu Apr 20, 2006 8:30 pm    Post subject: Share common file within the same run unit
Reply with quote

There are 3 things to do.
icon_redface.gif
The first is declared a physical file in the File-Control paragraph for each program.

The second is declared a logical file with the EXTERNAL clause in the File section for each program.

The third is declared a data item with the EXTERNAL clause in each program's Working-Storge Section.
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
No new posts Number of parameters in Linkage kregen COBOL Programming 4 Wed Jan 27, 2016 5:13 pm
No new posts COBOL Parmlist and Associated Linkage... Bill O'Boyle COBOL Programming 10 Fri Dec 20, 2013 9:43 pm
No new posts Linkage Section for Three programs Mr.Niceguy COBOL Programming 13 Sat Jun 01, 2013 7:21 pm
No new posts Sort - Header on Page Break and Secti... srinathds83 SYNCSORT 7 Mon May 13, 2013 11:31 am
No new posts Low-values in linkage parameter Robert Sample COBOL Programming 7 Thu Feb 28, 2013 2:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us