What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field?
Answer Posted / ram.g
ans to last ans
anything you can move to alpha...provided ..ur input is w/n
quotes...
ans to ur qn...
its quite possible by using redefine command...
the field will be sharing same memorylocation..
eg: 05 ws-num pic 99
10 ws-char redefines ws-num pic x(2)
move 12 to ws-num
move 'ab' to ws-char
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Difference between cobol and cobol-ii?
For rewrite, why is it mandatory that file needs to be opened?
What is a report item?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How many bytes S(8) comp field occupy and its maximum value?
What is the compute verb? How is it used?
What are the rules of the move verb?
Difference between array and sub-script ?
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?
How you can characterize tables in cobol?
How are the next sentence and continue different from each other?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different types of condition in cobol and write their forms.