home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
smrtsort
/
sample7.cbl
< prev
next >
Wrap
Text File
|
1995-07-18
|
2KB
|
36 lines
*
* Licensed Material -- Property of IBM
* 5765-349
* (c) Copyright IBM Corporation 1995
* All rights reserved
*
IDENTIFICATION DIVISION.
PROGRAM-ID. sample7.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 parmlist.
05 command pic X(100) value Z"-s copy -x 'filter
- "3b,3 eq ""L92""' -o .\output\filtered.out
- ".\data\dept.all ".
05 inbuffer usage pointer.
05 outbuffer usage pointer.
05 inexit usage procedure-pointer.
05 outexit usage procedure-pointer.
05 altseq usage pointer.
05 ioerror usage procedure-pointer.
PROCEDURE DIVISION.
SET INBUFFER TO NULL.
SET OUTBUFFER TO NULL.
SET INEXIT TO NULL.
SET OUTEXIT TO NULL.
SET ALTSEQ TO NULL.
SET IOERROR TO NULL.
CALL "SMARTSORT" using by reference command
by value inbuffer
outbuffer
inexit
outexit
altseq
ioerror.
STOP RUN.