Answer Posted / vamsi
In a general scenario, we cannot use two 01 level numbers in
the same structure.
We can use this when we want to redefines entire structure only.
Eg:
01 ws-input.
10 name pic x(40).
10 desig pic x(40).
01 ws-input-re redefines ws-input
10 name pic x(30).
10 department pic x(10).
10 designation pic x(20).
10 salary pic s9(13)v99.
10 filler pic x(13).
this way we can use.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
) what is the difference between AID and HANDLE AID?
What are the cobol coding sheets?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do you define a variable of comp-1 and comp-2?
how do you reference the esds vsam file formats from cobol programs
IF I mention stop run in CICS what happens?
When is inspect verb is used in cobol?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are the access modes of START statement?
Can a Search can be done on a table with or without Index?
what is the use of outrecord?
Can we change the password using ALTER? anyone tried and changed?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
For rewrite, why is it mandatory that file needs to be opened?
Write a program to explain size error.