How we can delete all the Logical File of a Physical file
in one instance ?

Answer Posted / anonymous- projo

You create a CL program using following tips
1. pass file name as a parameter.
2. Declare a Model DSPDBR outfile
3. Execute DSPDBR command and store the results in out file
declared in step 2.
4. Read this file to retrieve all file names in loop one
after another deleting each one.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the favicon.ico request that my site receives now and then?

627


In RPG How to read a records from a file without using read opcodes?

956


What Is The Difference Between Goto & Exsr?

1168


when do you explicitly open files and close files in an rpg program?

1172


what is the purpose of dynslt keyword?

1027






what is the difference between packed decimal and zoned decimal?

2250


the maximum number of subfiles that can be active for a single file is ____ .

1176


how can you execute a command from within an rpg program without calling a clp program?

1191


explain the use of dftwrt display keyword?

1129


What Does Lokup Does In Tables & Arrays?

732


when would you prefer logical file than opnqryf?

1362


what is the maximum number of records you can specify in a display file?

1116


can a indexed file be accessed in arrival sequence in rpg program?

934


what is cab?

661


What is compiler directive in as400? Give example of compiler directive.?

570