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
Write the code to count the sum of n natural numbers.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Difference between array and sub-script ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Why occurs cannot be used in 01 level in COBOL?
What are the various section in data division and briefly explain them.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is report-item in COBOL?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How do we get current date from system with century in COBOL?
Name the sections present in data division.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What guidelines should be followed to write a structured cobol prgm?