can we use cl programming to update or delete physical files

Answer Posted / nirosh

We can clear all records from the physical file using
CLRPFM command. If we want delete PF we can use DLTF
command.But before delete any PF first of all we need to
delete all the LFs related in that PF.(DSPDBR=Display Data
Base Relations,we can get all LFs relating to that PF)You
must give the correct Library name for all the commands
above. I don't know how to update PF from the CL
programming.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

952


what is the difference between do while and do until?

977


What is the purpose of record level identifier?

928


what is a rpg?

953


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

1102


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

935


Explain mdt?

902


what are the key words you must use when using a subfile?

919


how does the rpg element work?

975


How would display prime numbers using CL program?

6007


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1787


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

1024


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

1529


What is ment by record level identifier?

887


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

976