1.How to read a subfile in out put mode?
2.what are the keywords used to share same file?
3.using composite key which rpg code used?

Answer Posted / syam

A2. Share open data path = *Yes
A3. KLIST & KFLD in Free Format %KDS

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a record lock error?

1263


What is the purpose of record level identifier?

728


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

714


how does the rpg element work?

716


What is the difference between iter and do?

674






If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

613


What is file identifier where we can use?

644


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2371


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

751


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

831


is this a rpg channel?

675


How to handle duplicate error handling in RPG?

1676


how can I tell when to replace the array?

702


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2194


which program rpg or cl is efficent to update a transaction onto a database file and why ?

743