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

COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


What is the difference between Call and a Link?

0 Answers  


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


What is difference between comp & comp-4?

6 Answers  


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  






What the difference is between continue and next sentence?

0 Answers  


WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,


Differentiate COBOL and COBOL-II?

0 Answers  


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


Categories