using redefine can you redefine lower variable size to
higher variable size?
Answers were Sorted based on User's Feedback
Answer / santosh mahajan
Yes. Redefines just causes both fields to start at the same
location. For example:-
01 WS-XYZ PIC X(1).
01 WS-XYZ-R REDEFINES WS-XYZ PIC(2).
MOVE 11 TO WS-XYZ-R
DISPLAY WS-XYZ will show 1
DISPLAY WS-XYZ-R will show 11
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / harikumr ch
Syn:Levelnumber dataname-1 redefines data-name-2
The data-name-1 & data-name-2 must be of same size.(From
level 02).Incase of 01 level, the size of data-name-1 must
not exceeds that of data-name-2.
| Is This Answer Correct ? | 0 Yes | 1 No |
A table has two indexes defined. Which one will be used by the SEARCH?
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
what is the coding difference between COBOL and CICS.
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
waht is inspect verb? where it can be in real time?
If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it
how can i see junk values in dclgen or in hostvariable of comp ?
wht do u mean by (*,intrdr) wht is * used for ?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How to convert bunch of words in a line to relvant ASCII values?