How can you delete a record from a file in RPG without using DELETE oppcode?

Answers were Sorted based on User's Feedback



How can you delete a record from a file in RPG without using DELETE oppcode?..

Answer / surya siram

I believe we cant delete a record without using DELETE Opcode. Or we can use SQLRPG "Delete" statement to delete a particular record.

Is This Answer Correct ?    4 Yes 1 No

How can you delete a record from a file in RPG without using DELETE oppcode?..

Answer / as400vaibhav@gmail.com

we can use CLRPFM command in RPG by with API QCMDEXC.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

0 Answers  


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  


steps involved in debugging and types of debugging modes?

1 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?

3 Answers   HSBC, TCS,






I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


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.

0 Answers  


What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


can we perform CHAIN operation on Subfile record format....?

4 Answers  


WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?

3 Answers  


I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.

9 Answers   IBM,


what is edit word and edit code

0 Answers   Cap Gemini,


Categories