1.I Have a physical file , i want to read the data from the
each and every member of the File in the CL Program.How do
you achieve this.
2.How do you do the same in RPG?. do think is it possible to
read data from all the members in the RPG?

Answer Posted / sivaprasad

in CL

by OVRDBF we can load the data from all members in file.

OVRDBF FILE(INPUT) TOFILE(PAYROLL) MBR(*all)

in RPG

by EXTMBR(*all) can load the data from all members in file

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a record lock error?

1265


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

1462


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

709


What is the purpose of record level identifier?

728


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?

503






Explain mdt?

665


how do you use commitment control in rpg?

757


How to declare the pull button in AS/400..

1878


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1895


what was the robotech rpg?

684


what is the necessary keyword needed to scroll subfile records?

702


do you use message subfiles? What are the necessary keywords required coding a message subfile?

687


how do I declare a minor?

716


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

714


what do you mean by an input subfile, what are the keywords required?

773