01 a pic x(4) value 'abcd'
01 b pic 9(3)
can we move from a to b.if possible what would be stored in
b.
Answers were Sorted based on User's Feedback
Answer / chuvabe
no. cannot. because b is numeric. alpanumeric cannot move
to numeric field.
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / shibin shah
alpha numeric value cant be stored in integer data type ....
so b will b contain junk valueeee...
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / shiva
no we cannot move alphabet in to a numeric field....
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sadaf rehan
abc will moved to a and 'd' will get teminating
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / manish shelke
YES, we can move . But the a will contained only ABC and D
will get truncated
| Is This Answer Correct ? | 5 Yes | 12 No |
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What is an in-line perform ?
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
Why occurs can not be used in 01 level ?
Which Search verb is equivalent to PERFORM…VARYING?
what are the control characters used in reports
In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the different data types in cobol?
How do u know what version of cobol u are using?
What are the pertinent COBOL