a pic s9(4) comp
b pic s9(4) comp-3
c ????????????????
d ????????????????
move a to c
add a+B giving d.
what is ur declaration for c,d?
Answer Posted / mithlesh
since A is the comp field it takes 2 bytes space and B is
the comp-3 field it takes 3 bytes .
Now for the the declaration C and D they must be declaraed
into s9(4) and S9(5) pic caluse.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Call and a Link?
Have you used comp and comp-3 in your project? And how?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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 do you reference the rrds file formats from cobol programs
Which division and paragraphs are mandatory for a COBOL program?
Write the code to count the sum of n natural numbers.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is the difference between perform … with test after and perform … with test before?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
In COBOL, what is the different between index and subscript?