01 xxx pic 9(4).
01 yyy pic 9(6).
move 123456 into yyy.
move yyy to xxx.
display yyy.
what would be the value of yyy
Answer Posted / gangadhara.m
numeric number alingment is right to left
truncation is done in left side
the datatype size of y is 6
so value of y is 123456
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What type of SDLC u followed? Why?
What is amode(31)
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
) what is the difference between AID and HANDLE AID?
How do you reference the fixed block file formats from cobol programs
What is redefines clause in COBOL?
Which is not true about evaluate statement
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the access modes of START statement?
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
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
how to move the records from file to array table. give with code example
Name some of the examples of COBOl 11?
How do you differentiate between cobol and cobol-ii?