How can i keyed a flat file in RPGLE

Answer Posted / rajesh

YOU CAN CREATE A LF WITH KEY

R PF1 PFILE(PF1)
K PF1

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

495


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...

1296


how do I declare a table or array in rpg iv?

717


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

2354


what is program status data structure?

1356






what is the use of sflnxtchg?

788


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

813


When it is desirable to describe files Internally?

1166


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.

2175


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1434


how can you display specific subfile page on the screen in unequal subfile?

660


what was the robotech rpg?

666


how do I preserve and clean the array?

656


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...?

1449


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

706