i hav 2 logical files(L1,L2) both r derived from one physical
file(P1). how can i use both the logical files in one RPG
program? if yes what i have to d.

Answer Posted / alok.yee001

We need to rename the rocord format of atleast one logical file so that program will recognize the both files.

Prefix the fields is not really required (program will be compiled without prefix).

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 the use of sflnxtchg?

805


Explain mdt?

667


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

773


What is a record lock error?

1270


is this a rpg channel?

681






are there any useful c runtime apis that I can call from rpg iv?

700


how do I play {insert rpg system here}?

587


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2281


how do you use commitment control in rpg?

759


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?

622


How can we know running job is batch or interactive?

659


how does the rpg element work?

718


How to select highest score of each subject or how to select highest income of every month?

1297


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

510


what is file information data structure?

1376