Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / suv
If your question is like this:::
Suppose i want to declare a binary COMP field of storage 7
bytes .how
to write?
Answer is:
PIC S9(14) COMP.
storage byte required by COMP field will = half of the
digit specified in the PIC clause.
Just an info....
storage byte required by COMP3 field will = ( half of the
digit specified in the PIC clause)+1
Please correct me if I am wrong.
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
How do you reference the fixed block file formats from cobol programs
Write a cobol program making use of the redefine clause.
What the difference is between continue and next sentence?
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.
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.
What are various search techniques in cobol? Explain.
How to know whether the module is dynamical or statistical?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Write down the divisions of cobol program?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is difference between static and dynamic call in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
In COBOL, what is the different between index and subscript?
How do you differentiate between cobol and cobol-ii?