If there are two copybooks which have same variables and we
are using both the copybooks in our program. will there be
an error and if i move values to the variable which copybook
varibales gets the values i move in.
Answer Posted / jagan
There won't be any error if we have similar variables in
different copybooks and use them in a same program. One
thing i would like to ensure here is before using a copybook
variable in a program , you will need to mention the name of
the copybook followed by the variable...
eg., there are 2 copybooks. RESIDENT and OFFICE and both
of them have the variable ADDRESS in it .
(i) RESIDENT
(ii) OFFICE
We need to refer them in the program by
RESIDENT-ADDRESS and OFFICE-ADDRESS.
In case any data is to be moved to these fields then you can
do it by below stmts.
MOVE PERM-ADD TO RESIDENT-ADDRESS
MOVE TEMP-ADD TO OFFICE-ADDRESS
Hence there shouldn't be any problem in referring to similar
fields in different copybooks .
| Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
what is amode(24), amode(31), rmode(24) and rmode(any)?
Why would you use find and get rather than to obtain?
What is the compute verb? How is it used?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Can we change the password using ALTER? anyone tried and changed?
Which is not true about evaluate statement
How many sections are there in data division in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
) How do u handle errors in BMS macro?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?