What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I want Display WS-VARX and WS-VARN?
Answer Posted / jitinder
The Syntax of Redefine Clause is
Label number data-name-1 REDFINES data-name-2
Here data-name-1 should not contain VALUE clause, but data-
name-2 can contain VALUE clause.
Plz correct me if i m wrong.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Which is not true about evaluate statement
What are the different rules to perform a Search?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
what are decleratives in cobol?
What is Pic 9v99 Indicates in COBOL?
what happens if parmparameter passes zero bytes to the program
How can you get the ksds file records into your cobol program?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between goback, stop run and exit program in cobol?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are different data types in cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?