Monday, 28 July 2014


An input procedure is a procedure that processes one or more input files before the sort work file is sorted.
The Sort statement passes control to this procedure before the sort function takes place.
If you don’t need to process the input file before it’s sorted, you can code the Using clause instead of the Input Procedure clause. Note that the Sort statement will open and close this file automatically, so it shouldn’t be open when the Sort statement is executed.
Also note that either sequential or dynamic access should be specified for the file so it can be accessed sequentially.
Format :

Example : Input procedure used with SORT verb.


Created with Artisteer

No comments:

Post a comment