01 var1 pic s9(9)v99.
01 var2 pic x(30).
procedure division.
move 12345.99 to var1.
move12345.99 to var2.
display var1.
display var2.
what is the output?
Answers were Sorted based on User's Feedback
Answer / kingshuk
var1:0000123459I
If we move 12345.99 to var2 it will give a compilation error.
It should be move '12345.99' to var2.Then
var2:12345.99
| Is This Answer Correct ? | 16 Yes | 4 No |
Answer / john benito
Will abend.
Pic clause is not allowed in 01 level.
| Is This Answer Correct ? | 3 Yes | 28 No |
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
What is the difference between performing a SECTION and a PARAGRAPH?
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
What are literals?
i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
The maximum number of dimensions that an array can have in COBOL-85 is ?
What are the steps you go through while creating a COBOL program executable?
how do you define single dimensional array and multidimensional array in your cobol?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.