77 a pic x(4) value '1234' -----> instead of this 'abcd'
77 b pic 9(4) value zeros.
move a to b
what is the answers for both cases?
IS it possible? Give me elementary move rules briefly......
Answer Posted / subra kondaveeti
Hello All, Move a alpha numeric field to Numeric fields doesn't necessarily gives a soc7 because it depends upon the what the alpha-numeric field contains.
for example value of 'ABCD' in teh alpha-numeric field ALSO MOVES 1234 to numeric field. if you look at the assembly instruction produced for the move statement is
moven which means ignore the zone portion of each byte and move the numeric value of the byte. but it can give soc7 if you move '----' to numeric field because it tries to move x'CACACACA' to numeric field. if you look at the numeric portion of every byte is 'A' and hence can't be moved
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between external and global variables in COBOL?
what is difference between cobol and cobol/400
Mention the guidelines to write a structured cobol program?
Explain what you understand by passing by value.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Why would you use find and get rather than to obtain?
how do you reference the ksds vsam file formats from cobol programs
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Write the code implementing the perform … varying.
What are declaratives and what are their uses in cobol?
Difference between cobol and cobol-ii?
Define cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?