is it possible to declare index in cobol program?
if it is not why its tell me pls
Answer Posted / kiran
yes it is possible
ex PERFORM TEST AFTER VARYING WS-INDEX FROM
1 BY 1 UNTIL WS-INDEX = 10
DISPLAY "WS-INDEX is now equal to " WS-INDEX
END-PERFORM
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
how do you reference the rrds file formats from cobol programs
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between goback, stop run and exit program in cobol?
What are the different data types in cobol?
how to move the records from file to array table. give with code example
what happens if parmparameter passes zero bytes to the program
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between PIC 9.99 and 9v99 in COBOL?
what is difference between cobol and cobol/400
Explain how to differentiate call by context by comparing it to other calls?
How do you define a variable of comp-1 and comp-2?
What is Pic 9v99 Indicates in COBOL?
Explain about different table spaces.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.