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 redefines clause in COBOL?
What is the LINKAGE SECTION used for?
i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
What care has to be taken to force program to execute above 16 Meg line?
COMP field occupy ?
How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN REDEFINES A. 05 AIN1 PIC S9(4) 01 B PIC 9(4)V99. 01 BIN REDEFINES B. 05 BIN1 PIC S9(4)V99. PROCEDURE DIVISION. START-PARA. INITIALIZE A AIN B BIN. ACCEPT A B. DISPLAY 'VALUE OF A=' A. DISPLAY 'VALUE OF B=' B. DISPLAY 'VALUE OF BIN1=' BIN1. DISPLAY 'VALUE OF AIN1=' AIN1. COMPUTE AIN1 = BIN1 - AIN1. DISPLAY 'VALUE OF AIN1=' AIN1. When i'm executing this code i'm getting SOC7 for A = 12 & B=34. Can someone explain SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE 0 COLUMNS 02- 81 COMMAND INPUT ===> SCROLL ===> CSR ********************************* TOP OF DATA ********************************** VALUE OF A=12 VALUE OF B=34 VALUE OF BIN1=34 VALUE OF AIN1=12 CEE3207S The system detected a data exception (System Completion Code=0C7). From compile unit PROG1 at entry point PROG1 at statement 29 at compile +000004CE at address 00007ECE. Please address how to solve this issue Thanks in advance.
I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
TYPES OF SORTINGS. which is more prefarable.
What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad
What is the default value(s) for an initialize? What keyword will allow for an override of the default?