home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
pc_comma.zip
/
PC-COMMA.PRO
< prev
next >
Wrap
Text File
|
1987-04-20
|
4KB
|
109 lines
REM Sample of conversion of an ASCii file
REM
REM DSN card(s) indicate the drive/path/dsn of the input file and
REM the drive/path/dsn of the file(s) to be created
REM cc 4-42 = input file cc 43-80 = output file
REM
DSNSAMPLE.ASC SAMPLE1.CMA
REM
REM INP card signifies input file type ASC=Ascii DIR=Direct
REM note that for DIR the LRL card must be present
REM default is ASC
INPASC
REM
REM HDR card causes first line of file to be dummy field labels
REM as defined in FLD cards - default no HDR card
HDR
REM
REM LRL card causes records which are not that length to be dropped
REM for Ascii files and gives record length for Direct files
REM default is ASCII CRLF actual length of each record
LRL060
REM
REM SKP card causes the first XX records to be bypassed
REM default is no skipping
SKP01
REM
REM DRP card(s) cause records which include the search field to be
REM bypassed - default is no dropping
DRPReagan
REM
REM CHG card(s) will do a global search/replace on ~ separated fields
REM fields must be same length or strange results may occur
REM default is no changes
CHG~Newman~Smith ~
REM
REM ZRO card causes blank Numeric fields to be output as ASCII 0
REM default is to output field as a blank
ZRO
REM
REM FLD cards define the output format/attributes by input column(s)
REM cc4 = C for Character data N for numeric
REM cc5-7 = field start position
REM cc8-10 = field length
REM cc 11 = Compress output field Y or N (remove blanks)
REM cc 12- = Dummy field label used for HDR option
REM
FLDC001019YName
FLDC020022YStreet
FLDC042012YCity
FLDC054002NState
FLDN056005NZip
REM
REM GO card tells program to execute current request(s)
GO
REM Sample of conversion of a DIRect file
REM
REM DSN card(s) indicate the drive/path/dsn of the input file and
REM the drive/path/dsn of the file(s) to be created
REM cc 4-42 = input file cc 43-80 = output file
REM
DSNSAMPLE.DIR SAMPLE2.CMA
REM
REM INP card signifies input file type ASC=Ascii DIR=Direct
REM note that for DIR the LRL card must be present
REM default is ASC
INPDIR
REM
REM HDR card causes first line of file to be dummy field labels
REM as defined in FLD cards - default no HDR card
HDR
REM
REM LRL card causes records which are not that length to be dropped
REM for Ascii files and gives record length for Direct files
REM default is ASCII CRLF actual length of each record
LRL060
REM
REM SKP card causes the first XX records to be bypassed
REM default is no skipping
SKP01
REM
REM DRP card(s) cause records which include the search field to be
REM bypassed - default is no dropping
DRPReagan
REM
REM CHG card(s) will do a global search/replace on ~ separated fields
REM fields must be same length or strange results may occur
REM default is no changes
CHG~Newman~Smith ~
REM
REM ZRO card causes blank Numeric fields to be output as ASCII 0
REM default is to output field as a blank
ZRO
REM
REM FLD cards define the output format/attributes by input column(s)
REM cc4 = C for Character data N for numeric
REM cc5-7 = field start position
REM cc8-10 = field length
REM cc 11 = Compress output field Y or N (remove blanks)
REM cc 12- = Dummy field label used for HDR option
REM
FLDC001019YName
FLDC020022YStreet
FLDC042012YCity
FLDC054002NState
FLDN056005NZip
REM
REM GO card tells program to execute current request(s)
GO