Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answers were Sorted based on User's Feedback
Answer / i go crazy
Hi Suv,
If u code S9(14) COMP, it will take double word i.e. 8
bytes. Below is the size of comp variables.
S9(01) - S9(04) : 2 BYTES.
S9(05) - S9(09) : 4 BYTES.
S9(10) - S9(18) : 8 BYTES.
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / tata
if we use comp3(packed decimal)
declare like 01 a pic s9(13)comp3.
13/2=6.5 and s takes extrahalf byte.
that is 6.5+0.5=7.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / ankit
hi i think you cannot declare binary comp of 7 bytes
exactly as the comp variable are fixed to half(2 bytes)
word,full word(4 bytes) and double word(8 bytes), so you
need to choose the paricular comp variable to use ok
correct me if i am wrong
Is This Answer Correct ? | 1 Yes | 2 No |
When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.
TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr
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
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
how would find total records in files using seqientional
record length in spool?
What is normalisation?
Why we are using comp and comp-3 in real time projects?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
What is the difference between performing a SECTION and a PARAGRAPH?
what is the use of keep and pass in disp
What are the various section in data division and briefly explain them.