Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

input output procedure
0
Posted

What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0

Ans: Sometimes, it is necessary that the records must be edited before or after the sorting. In such cases, SORT workfile ASC/DESC KEY key1, … INPUT PROCEDURE IS ipproc OUTPUT PROCEDURE is outproc Is used. In the INPUT PROCEDURE the input file is opened, records are read and edited and then are released to the sorting operation. Finally the file is closed. RELEASE sortrecname FROM inp-rec. In the OUTPUT PROCEDURE, output file is opened, the sorted record is returned to the Output record area and then the record is written. Finally the file is closed. RETURN workfile RECORD into out-rec.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123