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 |
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
can internal sort be applied to sort ksds files?
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?
which one is the best of com and com-3.using of real time ?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
wht is packed decimal in cobol
What is the difference between write & move in COBOL?
db2 variable decimal(15,2) what is the equalent size of cobol variable