View previous topic :: View next topic
|
Author |
Message |
joice
New User
Joined: 07 Apr 2004 Posts: 4
|
|
|
|
1. can we initialise value in linkage section.
ex. 01 a pic 9(5) value 90. |
|
Back to top |
|
|
mvs_butta
New User
Joined: 23 Dec 2003 Posts: 13
|
|
|
|
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 |
|
|
joice
New User
Joined: 07 Apr 2004 Posts: 4
|
|
|
|
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 |
|
|
leo
New User
Joined: 27 Apr 2004 Posts: 2 Location: brazil
|
|
|
|
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 |
|
|
bryan-yang
New User
Joined: 16 Apr 2006 Posts: 16 Location: BeiJing, China
|
|
|
|
There are 3 things to do.
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 |
|
|
|