home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
dbaseii
/
zdirfile.lbr
/
DIRLST.CQD
/
DIRLST.CMD
Wrap
OS/2 REXX Batch file
|
1986-09-26
|
2KB
|
118 lines
*
*-------------------------------------------------------
* " DIRLST.CMD " , 0538pm, sun, 20.Jul.86, Glen Ellis
*-------------------------------------------------------
*
*
* primary call from dirfile.cmd
*
* generates the LST: file for submit.com
*
*
rest from dirmem
*
erase
**
@ 01,00 say "---> GENERATE the DIRLST.SUB file "
**
*
if llstflt
USE DIRFLT
else
USE DIRALL
endif
*
COPY TO DIRDIR
USE DIRDIR
*
*---> attach lst parameter
*
do while .not. eof
stor trim(line) + trim(llparm) to lline
replace line with lline
skip
enddo
*
*---> insert formfeed after each LST: filename
*
****
goto bottom
*
@ 05,10 say "Bott RCD # " + str(#,5)
*
goto top
*
do while .not. eof
*
@ 07,10 say str(#,5) + " : " + line
*
skip
*
if .not. eof
*
* insert before the selected record
*
INSERT blank before
*
* now pointing to inserted record
*
@ 09,10 say str(#,5) + " : Insert FF"
*
* install the data into the inserted record
*
REPLACE line with "&lformfeed"
*
* skip past the inserted record
* point to the previously selected record
*
skip
*
endif
*
enddo
*
*
*---> kicker formfeed
*
*
APPEND blank
REPLACE line with "&lformfeed"
@ 09,10 say str(#,5) + " : Insert FF kicker #1"
*
APPEND blank
REPLACE line with "&lformfeed"
@ 09,10 say str(#,5) + " : Insert FF kicker #2"
*
****
*
*---> prefix the listing function and drive location
*
goto top
*
do while .not. eof
*
stor llstroot + ldrvsour + line to lline
REPLACE line with lline
@ 11,10 say line
skip
*
enddo
*
*---> generate the LST: file for submit.com
*
COPY SDF to &LDRVSUB.DIRLST.SUB
*
SELECT PRIMARY
USE
*
SELECT SECONDARY
USE
*
DELETE FILE DIRDIR.DBF
*
*
* * RETURN
*
* EOF (DIRLST.CMD)