01 a pic 9(3) value is 123
01 b pic 9(6)
move a to b
wht will be the value ? and
01 a pic x(6) value is abc
01 b pic x(3)
move a to b
wht will be the value ?
Answer Posted / kiran
Result
000123
abc
no "-" sign will come bcoze we didnt give like this
01 a pic s9(3) value is 123
01 b pic s9(6)
move a to b
wht will be the value ? and
01 a pic x(6) value is abc
01 b pic x(3)
move a to b
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Global and External Variables?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the compute verb? How is it used?
How to remove 2 duplicate records and copy only one using job control language?
What is the difference between next sentence and continue in cobol programing language?
What are the different rules for performing sort operation?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the local-storage section?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
what is the difference between COBOL2 AND COBOL390?
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
Which division and paragraphs are mandatory for a COBOL program?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Why is it necessary that file needs to be opened in I-O mode for REWRITE?