Explain how to delete a file using sqr?



Explain how to delete a file using sqr?..

Answer / Raju Shah

To delete a file using SQR, you can use the built-in system function called 'SYSTEM.FILE_DELETE'. Here's an example of a simple SQR program that deletes a file:nnPROGRAM-ID: DELETE_FILE.nPARAM1 PIC X(80).nnDATA DIVISION.ndw-main SECTION.ndw-main.010 PROCEDURE SECTION.nBEGIN PROCESS.n MOVE 'YOUR_FILE_NAME' TO PARAM1 WITH ERROR.n IF SYSTEM.FILE_EXISTS(PARAM1) THENn CALL SYSTEM.FILE_DELETE(PARAM1).n DISPLAY 'File has been deleted successfully.'.n ELSEn DISPLAY 'The specified file does not exist.'.n END-IF.nEND PROCESS.ndw-main.998 EXIT SECTION.nEXECUTE PROGRAM DELETE_FILE USING 'YOUR_FILE_NAME'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PeopleSoft General Interview Questions

What is the process flow in billing, ar, am. Gl, ap, po etc?

1 Answers  


Where is Unicode used?

1 Answers  


Explain data mover. Where did you use etc?

1 Answers  


Which is the peoplesoft’s hub to handle complex system-to-system interactions?

1 Answers  


Which PeopleSoft's hub to handle complex system-to-system interactions?

1 Answers  


What are the main attributes of a component interface (ci)?

1 Answers  


Explain file formats for file layout?

1 Answers  


Why are application specific people-code functions used?

1 Answers  


What is paycycle and paycycle manager?

1 Answers  


PeopleSoft reserves ALL WinHelp context numbers (in Utilities, PeopleTools Options) up to which number?

1 Answers  


Suppose you just finished customization work that involved the creation of many new objects. You must now migrate these objects from your development database (source) to a testing database (target) to conduct more elaborate testing.referring to the above information, why would adding your objects to a project

1 Answers  


Where We define business rules PeopleCode on?

1 Answers  


Categories
  • PeopleSoft HRMS Interview Questions PeopleSoft HRMS (83)
  • PeopleSoft Financials Interview Questions PeopleSoft Financials (27)
  • PeopleSoft Administration Interview Questions PeopleSoft Administration (181)
  • PeopleSoft Tools Interview Questions PeopleSoft Tools (176)
  • PeopleSoft Interfaces Interview Questions PeopleSoft Interfaces (58)
  • Internet EBusiness Interview Questions Internet EBusiness (19)
  • PeopleSoft Implementation Interview Questions PeopleSoft Implementation (142)
  • PeopleSoft General Interview Questions PeopleSoft General (385)
  • PeopleSoft AllOther Interview Questions PeopleSoft AllOther (60)