Can AnyOne tell me how to read join logical file in rpg from starting to end?

Answers were Sorted based on User's Feedback



Can AnyOne tell me how to read join logical file in rpg from starting to end?..

Answer / uday bagdi

1) You can use primary file key field in join logical file. If your join logical file has key field then use *LOVAL SETLL. and read that file in loop.(This condition read records from start to end)
2) if your logical file not a key filed then use RRN like
1 SETLL and read that file in loop. (This condition read records from start to end)

Is This Answer Correct ?    4 Yes 0 No

Can AnyOne tell me how to read join logical file in rpg from starting to end?..

Answer / karan

Thanks Uday it works

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?

2 Answers   CGI, Wipro,


1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?

3 Answers  


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

0 Answers  


what is ment by "MDT"

2 Answers   TCS,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  






Can an indexed file be accessed in arrival sequence in RPG?

3 Answers  


Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?

2 Answers   Cap Gemini,


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

0 Answers  


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?

6 Answers  


what is flat file?

1 Answers   IBM,


Categories