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 |
When is a scope terminator mandatory?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
What are options have been removed in COBOL 11?
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
IF I mention stop run in CICS what happens?
If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Is It Possible to Update or change in VIEW Mode?
Can we move X(7) to S9(7) COMP?
should I use Go back in the main program ? Yes we can use Go back in main program as well.
What is the use of EVALUATE statement?
Did anybody attend the walkin of TCS on 31st July in Gurgaon for any technology,If u have completed 3 round i.e till the HR round,have u received the Offer letter yet? Please let me know.Thanks.