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 difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
I have a File that has duplicate records. I need only those records that occur more than thrice.?
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?
How do get the result of your program directly on your pc?
what is the difference between COBOL2 AND COBOL390?
i need a small 3d program using inline and outline.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
what is difference between cobol and cobol/400
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the difference between Global and External Variables?
Discuss about changing dataset name in proc.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what happens if parmparameter passes zero bytes to the program