How will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp

Answer Posted / sriram

for comp-3 will store data in packed decimal format
s9(3)comp-3
0.5+1.5=2 bytes,
for 128 it will store c128 or f128.
for comp will store data in binary format
s9(2) will occupy 2 bytes
for 12 it will store binary format i.e 12=1100

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


how can i see junk values in dclgen or in hostvariable of comp ?

2540


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

2331


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

681


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734






What rules are followed by the search verb.

631


Write some characteristics of cobol as means of business language.

614


) How do u handle errors in BMS macro

1505


What is the compute verb? How is it used?

655


What is amode(31)

716


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2005


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1840


What rules are to be followed while using the corresponding options?

634


how do you reference the variable block file formats from cobol programs

680