home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / pc_comma.zip / PC-COMMA.PRO < prev    next >
Text File  |  1987-04-20  |  4KB  |  109 lines

  1. REM            Sample of conversion of an ASCii file
  2. REM
  3. REM  DSN card(s) indicate the drive/path/dsn of the input file and
  4. REM      the drive/path/dsn of the file(s) to be created
  5. REM      cc 4-42 = input file   cc 43-80 = output file
  6. REM
  7. DSNSAMPLE.ASC                             SAMPLE1.CMA      
  8. REM
  9. REM  INP card signifies input file type ASC=Ascii DIR=Direct
  10. REM      note that for DIR the LRL card must be present
  11. REM      default is ASC
  12. INPASC
  13. REM
  14. REM  HDR card causes first line of file to be dummy field labels
  15. REM      as defined in FLD cards - default no HDR card
  16. HDR
  17. REM
  18. REM  LRL card causes records which are not that length to be dropped
  19. REM      for Ascii files and gives record length for Direct files
  20. REM      default is ASCII CRLF actual length of each record
  21. LRL060
  22. REM
  23. REM  SKP card causes the first XX records to be bypassed
  24. REM      default is no skipping
  25. SKP01
  26. REM
  27. REM  DRP card(s) cause records which include the search field to be
  28. REM      bypassed - default is no dropping
  29. DRPReagan
  30. REM
  31. REM  CHG card(s) will do a global search/replace on ~ separated fields
  32. REM      fields must be same length or strange results may occur
  33. REM      default is no changes
  34. CHG~Newman~Smith ~
  35. REM
  36. REM  ZRO card causes blank Numeric fields to be output as ASCII 0
  37. REM      default is to output field as a blank
  38. ZRO
  39. REM
  40. REM  FLD cards define the output format/attributes by input column(s)
  41. REM      cc4    = C for Character data N for numeric
  42. REM      cc5-7  = field start position
  43. REM      cc8-10 = field length
  44. REM      cc 11  = Compress output field Y or N (remove blanks)
  45. REM      cc 12- = Dummy field label used for HDR option
  46. REM
  47. FLDC001019YName
  48. FLDC020022YStreet
  49. FLDC042012YCity
  50. FLDC054002NState
  51. FLDN056005NZip
  52. REM
  53. REM  GO card tells program to execute current request(s)
  54. GO
  55. REM              Sample of conversion of a DIRect file
  56. REM
  57. REM  DSN card(s) indicate the drive/path/dsn of the input file and
  58. REM      the drive/path/dsn of the file(s) to be created
  59. REM      cc 4-42 = input file   cc 43-80 = output file
  60. REM
  61. DSNSAMPLE.DIR                             SAMPLE2.CMA      
  62. REM
  63. REM  INP card signifies input file type ASC=Ascii DIR=Direct
  64. REM      note that for DIR the LRL card must be present
  65. REM      default is ASC
  66. INPDIR
  67. REM
  68. REM  HDR card causes first line of file to be dummy field labels
  69. REM      as defined in FLD cards - default no HDR card
  70. HDR
  71. REM
  72. REM  LRL card causes records which are not that length to be dropped
  73. REM      for Ascii files and gives record length for Direct files
  74. REM      default is ASCII CRLF actual length of each record
  75. LRL060
  76. REM
  77. REM  SKP card causes the first XX records to be bypassed
  78. REM      default is no skipping
  79. SKP01
  80. REM
  81. REM  DRP card(s) cause records which include the search field to be
  82. REM      bypassed - default is no dropping
  83. DRPReagan
  84. REM
  85. REM  CHG card(s) will do a global search/replace on ~ separated fields
  86. REM      fields must be same length or strange results may occur
  87. REM      default is no changes
  88. CHG~Newman~Smith ~
  89. REM
  90. REM  ZRO card causes blank Numeric fields to be output as ASCII 0
  91. REM      default is to output field as a blank
  92. ZRO
  93. REM
  94. REM  FLD cards define the output format/attributes by input column(s)
  95. REM      cc4    = C for Character data N for numeric
  96. REM      cc5-7  = field start position
  97. REM      cc8-10 = field length
  98. REM      cc 11  = Compress output field Y or N (remove blanks)
  99. REM      cc 12- = Dummy field label used for HDR option
  100. REM
  101. FLDC001019YName
  102. FLDC020022YStreet
  103. FLDC042012YCity
  104. FLDC054002NState
  105. FLDN056005NZip
  106. REM
  107. REM  GO card tells program to execute current request(s)
  108. GO
  109.