HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
Answers were Sorted based on User's Feedback
Answer / anilgajmal86
TO PASS RECORD FROM FILE TO AN ARRAY, WE HAVE USE SOME VARIABLE WITH THE HELP OF PERFORM LOOP.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / piyush mani
to pass a value we always need a variable..
so using rread command store value in var1 and then use move command 2 send it to array..
like move var1 to var2(i)..
u have to use perform command..
giv ur feedback
| Is This Answer Correct ? | 1 Yes | 0 No |
wht is the difference between goto and perform stmts
How to Pass table from a cobol program to another cobol program and how to use that table in called program
study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid
given the following: 77 A PIC 9V9 VALUE 9.5 77 B PIC 9 VALUE 9. 77 C PIC V9 VALUE 0.8 77 D PIC 9 77 E PIC 9 77 F PIC 9V999 what are the contenta of D E nad F after the following statements are executed: COMPUTE F ROUNDED=A+C/B MULTIPLY A BY C GIVING E ADD B C A GIVING D ROUNDED a.F=9.589 E=8 D=1 b.F=9.589 E=8 D=9 c.F=9.589 E=7 D=9 d.F=9.589 E=7 D=1
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
What is rmode(any) ?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
What are decleratives in COBOL ?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
hw to create 3 dimensional array & hw to access it?