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



HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?..

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

HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?..

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

Post New Answer

More COBOL Interview Questions

what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C

3 Answers   TCS,


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


what are the diferences b/w sub-script and index?

4 Answers  


what is soc7 abend?how u can trace it?

4 Answers   Accenture,


can we use full outer join with cursors declared in cobol program?

2 Answers  






In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

0 Answers  


What does the initialize statement do ?

2 Answers  


What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?

4 Answers  


Whats the difference between search & search ALL?

3 Answers   IBM,


What are some examples of command terminators?

1 Answers  


Categories