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 |
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
What is 77 level used for ?
what is rediffine clause?in what situation it can use?give me real time example?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
1) can we display the index?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
can I copy book which contain db2 statment in procedure divion?