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 |
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
How can you add a particular field/coloumn in copybook?
What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a program which is not calling any other program ?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
how do you reference the rrds file formats from cobol programs
What are the pertinent COBOL commands?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
how can u redefine picx(10) with pic 9(6).
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
hw to create 3 dimensional array & hw to access it?
01 A pic 9(100) find record length of it