Describe the difference between subscripting and indexing ?
Answers were Sorted based on User's Feedback
Answer / padmanabha naidu.p
subscripting specifies the occurence or position of the
array and index specifies displacement.
subscripting can be manipulated by artimetic operations.
index can by manipulated by set ,perform and search
operations.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / minhaj
subscript represent the occurence of array.
subscript defined with working storage section.
subscript value can be changed with add,subtract,multiplication.
Index represent first occurence in the array,Index define
along with table entries as part of occus class.
value of index can be changed by the set operator.
| Is This Answer Correct ? | 2 Yes | 0 No |
i want to store 20 digits . h will u do it in cobol ?
I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
What are the pertinent COBOL commands?
What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.
diffrence between z(2) and z9(2)
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???
i WANT ALL ERROR codes IN CICS and DB2
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
Why we need to use redefine clause when we can define the variable seperately... what is actual need....