how many bytes does a s9(12)COMP-4 field occupy??
a.2
b.4
c.8
d.1
ans with reason please
Answers were Sorted based on User's Feedback
Answer / raja
Its occupies 8 bytes, because comp-4 is equalent to comp.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sharpmainframe
IT WILL BE 6 BECAUSE COMOP-4 OCCUPIED HALFBYTE.
Is This Answer Correct ? | 1 Yes | 4 No |
What will happen if we generate GDG +2 version instead of +1 version?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?
i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
can we redefine 77 level item is it possible
What is the linkage section?
01 a pic s9(5) occupies how many bytes ?