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?
Answers were Sorted based on User's Feedback
Answer / app
SUBSCRIPT: No. of occurences of a table is called Subscript.
INDEX: The disposition of the element.
Index can be used in Table data searching and Sorting but
Subscript won't be useful for the above.
Subscript reperesents as a occurence no. it must be
converted to displacement value each time its used so.. it
is less efficent than index.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / talluri
---subcript is a occurence of arry element
---index is a displacement no of an array element
subcript is declared as a variable in wss but index declared
using index by clause
| Is This Answer Correct ? | 1 Yes | 1 No |
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
can we display comp-3 variables. if we want to display what we have to do . give me one example
What do you do to resolve SOC-7 error?
WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?
what is srange and nosrange pls reply to ths question ?
can anyone explain me the concept of COMP-4 PLEASE??
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
wht do u mean by (*,intrdr) wht is * used for ?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
How do you do in-line PERFORM?
wht is packed decimal in cobol
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?