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 / abhay
C should be declared as S9(04)
D should be declared as s(05)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to convert the recors form vsam file to db2 table tru file aid
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 amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is amode(31)
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.
how do you reference the variable block file formats from cobol programs
Describe the cobol database components?
How do you get the data to code the BMS macro?
A table has two indexes defined. Which one will be used by the SEARCH?
Write the code to count the sum of n natural numbers.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How do you reference the following file formats from cobol programs?