How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.
Answers were Sorted based on User's Feedback
Answer / suresh kumar
total 19 bytes, For furtyher expansion you can see deepaks
answer.
| Is This Answer Correct ? | 1 Yes | 6 No |
Answer / asif
05 A PIC S9(4). = 4
05 B PIC XXXBXXX. = 7
05 C PIC ----9.99. = 8
05 D PIC S9(5) COMP-3. = 3
05 E PIC 9(3) COMP. = 2
LENGTH OF REC-A = 24 BYTES.
| Is This Answer Correct ? | 0 Yes | 5 No |
Answer / guest
Folloiwng will be space allocation:
A - 4
B - 7
C - 8
D - 3
E - 2
Total 24 bytes.
| Is This Answer Correct ? | 2 Yes | 8 No |
Answer / guest
correct answer is 25 bytes.. since s9(5) comp-3 will take 4
bytes.. not 3 bytes
A-4
B-7
C-8
D-4
E-2
| Is This Answer Correct ? | 0 Yes | 11 No |
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?
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.
is this below syntax correct? CALL 'subprg' using A,B Please help
What is SET TO TRUE all about, anyway?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
What is level 66 used for ?
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
What is difference between comp & comp-4?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.
how to transfer the file from pc to mainframe??