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?
Answer Posted / 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 |
Post New Answer View All Answers
What is cobol?
Why would you use find and get rather than to obtain?
Mention the guidelines to write a structured cobol program?
Explain about different table spaces.
How do get the result of your program directly on your pc?
What are the pertinent COBOL commands?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What are the access modes of START statement?
What kind of error is trapped by on size error option?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What do you understand by psb and acb?
What are the different data types in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What are literals?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.