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

can I touch the array during treatments?

758


how can I tell when to replace the array?

703


what is an online rpg?

729


How many program bind in one module....

2122


How to call one program from another program in RPG? please help me with the code

1260






is this a rpg channel?

681


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

1313


How Chain operation copies the record's data to the input buffer for the program?

1082


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

710


how do I declare a minor?

717


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

675


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

688


how do I preserve and clean the array?

676


explain sflclr, sflend, sfldlt, and sflcsrrrn?

890


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?

4211