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 / sriaknth
If two logical files are using same record format, RENAME keyword should be used on F spec, also if similar fields are used we should use PREFIX keyword.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
explain sflclr, sflend, sfldlt, and sflcsrrrn?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
How Chain operation copies the record's data to the input buffer for the program?
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
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
Explain mdt?
What is difference between bind by copy and bind by reference?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
What is a record lock error?
How to write record if no field or the field are different in physical file in rpgle ?
how does the rpg element work?
How can we know running job is batch or interactive?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
do you use message subfiles? What are the necessary keywords required coding a message subfile?