When and how can we use index & subscript ?
Answers were Sorted based on User's Feedback
Answer / shibin shah k j
wen we need to access array we need to use these two...
index with pointer ...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / suman kumar
1.Wen u use array commands search we use index,idex
is nothing but displacement position of array
2.Wen u use perform loop we use subscript, subscript is
nothing but a number
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the LINKAGE SECTION used for?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
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.
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
what is difference between the sysabend and userabend?
Name some of the examples of COBOl 11?
input:-AABBCCDDEFGHIIJ output:- ABCDEFGHIJ Here in input we hav the duplicate characters i.e repeating characters.SO we should eliminate the duplicate characters and should display the output in ascending order.
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
what happens when a copybook variables are declared using include statement ?
what happens of we dont give time stamp in precompilation process
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?