1)what is use of linkage section?
2)what is difference between comp and comp-3
Answer / samay simant
answer 1) Linkage section is used to accept data from outside the program.either its parm part of Jcl or Call from any other programs,they pass data into called program thru linkage section only.
2)Comp is binary.its the type how system stores ur data.
pic s9(1)-->pics9(4) --occupies 2bytes
pic s9(5)---pic s9(8) ----4 bytes
pic s9(9)---pics9(18)-----8 bytes
comp-3 is for packed decimal data where each character occupies half byte and sign is stored in last nibble.
If wrong,plz correct me anyone
| Is This Answer Correct ? | 13 Yes | 1 No |
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to increase the logical record length of existing PS file?
Can we call a CICS program from a batch program or viceversa?If so, how?
Mention the guidelines to write a structured cobol program?
Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
How many variables can be declared in w-s section.?
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
How you can delete a record from a ps file in cobol?
how we can edit records in vsam data set and non vsam data sets
What are the different forms of EVALUATE statement?
Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?