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 |
Can the OCCURS clause be at the 01 level?
write a program to eliminate duplicate records in a input file and send them to output file.
can we redefine 77 level item is it possible
How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN REDEFINES A. 05 AIN1 PIC S9(4) 01 B PIC 9(4)V99. 01 BIN REDEFINES B. 05 BIN1 PIC S9(4)V99. PROCEDURE DIVISION. START-PARA. INITIALIZE A AIN B BIN. ACCEPT A B. DISPLAY 'VALUE OF A=' A. DISPLAY 'VALUE OF B=' B. DISPLAY 'VALUE OF BIN1=' BIN1. DISPLAY 'VALUE OF AIN1=' AIN1. COMPUTE AIN1 = BIN1 - AIN1. DISPLAY 'VALUE OF AIN1=' AIN1. When i'm executing this code i'm getting SOC7 for A = 12 & B=34. Can someone explain SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE 0 COLUMNS 02- 81 COMMAND INPUT ===> SCROLL ===> CSR ********************************* TOP OF DATA ********************************** VALUE OF A=12 VALUE OF B=34 VALUE OF BIN1=34 VALUE OF AIN1=12 CEE3207S The system detected a data exception (System Completion Code=0C7). From compile unit PROG1 at entry point PROG1 at statement 29 at compile +000004CE at address 00007ECE. Please address how to solve this issue Thanks in advance.
How can you add a particular field/coloumn in copybook?
can we print comp 3 stmts how ?
What are the cobol coding sheets?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
can internal sort be applied to sort ksds files?
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
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.