How can you delete records form a file in rpg without
using "Delete" OPCODE?

Answer Posted / surendra y mudliar

If you want to delete all the records then you can do by
using API QCMDEXC and pass the parameter as CLRPFM.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

776


what is an online rpg?

731


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

1465


what is a rpg?

703


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2521






what is file information data structure?

1376


what is program status data structure?

1391


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

694


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2281


how do I play {insert rpg system here}?

587


how can I tell when to replace the array?

704


how do I declare a minor?

718


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

1083


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

690


how do I preserve and clean the array?

677