home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / biteit.zip / SYSDV2A.RPG < prev    next >
Text File  |  1993-01-25  |  10KB  |  356 lines

  1. 00010H                                      SYSDV1
  2. 00020F* THIS PROGRAM WILL WRITE OUT THE SELECTED BYTES
  3. 00030FINFILE1 IP  F    512           DISK
  4. 00040FDVPARM  IC  F     12           DISK
  5. 00050FFILSEC1 O   F    512           DISK
  6. 00060FFILSEC2 O   F    512           DISK
  7. 00070FFILSEC3 O   F    512           DISK
  8. 00080FFILSEC4 O   F    512           DISK
  9. 00090FFILSEC5 O   F    512           DISK
  10. 00100FFILSEC6 O   F    512           DISK
  11. 00110FFILSEC7 O   F    512           DISK
  12. 00120FFILSEC8 O   F    512           DISK
  13. 00130FFILSEC9 O   F    512           DISK
  14. 00130FFILSECA O   F    512           DISK
  15. 00550IINFILE1 AA  01
  16. 00560I                          1 256 REC1
  17. 00570I                        257 512 REC2
  18. 00580IDVPARM  CC  03
  19. 00590I                          1   8 FFNMSC
  20. 00600I                          9  11 FXNMSC
  21. 00610I                         12  120TYPESC
  22. 00620C*****************************
  23. 00630C* ADD 1 TO NUMBER OF BYTES READ IN
  24. 00640C*****************************
  25. 00650C               ADD    512      BYTSIN  90
  26. 00660C*****************************
  27. 00670C* DO ONE CHAIN TO THE PARAMETERS FILE
  28. 00680C*****************************
  29. 00690C         START       IFLT '1'
  30. 00700C         1       CHAINDVPARM             50
  31. 00710C               MOVE '1'      START   1
  32. 00720C               END
  33. 00730C*
  34. 00740C*****************************
  35. 00750C* IF THE BYTES READ IN IS EQUAL TO OR GREATER THAN
  36. 00760C*    THE STARTING BYTE PARAMETER -- AND
  37. 00770C*      LESS THAN OR EQUAL TO THE ENDING BYTE
  38. 00780C*      PARAMETER, THEN WRITE THAT BYTE TO THE
  39. 00790C*      OUTPUT FILE
  40. 00800C*****************************
  41. 00810C         BYTSIN    IFGT 0
  42. 00820C         BYTSIN    IFLE 1106944
  43. 00830C               EXCPTOUT1
  44. 00840C               END
  45. 00850C               END
  46. 00860C         BYTSIN    IFGT 1106944
  47. 00870C         BYTSIN    IFLE 2213888
  48. 00880C               EXCPTOUT2
  49. 00890C               END
  50. 00900C               END
  51. 00910C         BYTSIN    IFGT 2213888
  52. 00920C         BYTSIN    IFLE 3320832
  53. 00930C               EXCPTOUT3
  54. 00940C               END
  55. 00950C               END
  56. 00960C         BYTSIN    IFGT 3320832
  57. 00970C         BYTSIN    IFLE 4427776
  58. 00980C               EXCPTOUT4
  59. 00990C               END
  60. 01000C               END
  61. 01010C         BYTSIN    IFGT 4427776
  62. 01020C         BYTSIN    IFLE 5534720
  63. 01030C               EXCPTOUT5
  64. 01040C               END
  65. 01050C               END
  66. 01060C         BYTSIN    IFGT 5534720
  67. 01070C         BYTSIN    IFLE 6641714
  68. 01080C               EXCPTOUT6
  69. 01090C               END
  70. 01100C               END
  71. 01110C         BYTSIN    IFGT 6641714
  72. 01120C         BYTSIN    IFLE 7748658
  73. 01130C               EXCPTOUT7
  74. 01140C               END
  75. 01150C               END
  76. 01160C         BYTSIN    IFGT 7748658
  77. 01170C         BYTSIN    IFLE 8855602
  78. 01180C               EXCPTOUT8
  79. 01190C               END
  80. 01200C               END
  81. 01210C         BYTSIN    IFGT 8855602
  82. 01220C         BYTSIN    IFLE 9962546
  83. 01230C               EXCPTOUT9
  84. 01240C               END
  85. 01250C               END
  86. 01260C         BYTSIN    IFGT 9962546
  87. 01270C         BYTSIN    IFLE 11069490
  88. 01280C               EXCPTOUTA
  89. 01290C               MOVE '1'      ONCE      1
  90. 01300C               END
  91. 01310C*            END
  92. 01320C         BYTSIN    IFGT 11069490
  93. 01330C         BYTSIN    IFLE 12176434
  94. 01340C               EXCPTOUTB
  95. 01350C               MOVE '1'      ONCE      1
  96. 01360C               END
  97. 01370C               END
  98. 01380C         BYTSIN    IFGT 12176434
  99. 01390C         BYTSIN    IFLE 13283378
  100. 01400C               EXCPTOUTC
  101. 01410C               MOVE '1'      ONCE      1
  102. 01420C               END
  103. 01430C               END
  104. 01440C         BYTSIN    IFGT 13283378
  105. 01450C         BYTSIN    IFLE 14390320
  106. 01460C               EXCPTOUTD
  107. 01470C               MOVE '1'      ONCE      1
  108. 01480C               END
  109. 01490C               END
  110. 01500C*      BYTSIN    IFGT 14390320
  111. 01510C*      BYTSIN    IFLE 15497266
  112. 01520C*            EXCPTOUTE
  113. 01530C*            MOVE '1'      ONCE      1
  114. 01540C*            END
  115. 01550C*            END
  116. 01560C         BYTSIN    IFGT 15497266
  117. 01570C         BYTSIN    IFLE 16604210
  118. 01580C               EXCPTOUTF
  119. 01590C               MOVE '1'      ONCE      1
  120. 01600C               END
  121. 01610C               END
  122. 01620C         BYTSIN    IFGT 16604210
  123. 01630C         BYTSIN    IFLE 17711154
  124. 01640C               EXCPTOUTG
  125. 01650C               MOVE '1'      ONCE      1
  126. 01660C               END
  127. 01670C               END
  128. 01680C         BYTSIN    IFGT 17711154
  129. 01690C         BYTSIN    IFLE 18818098
  130. 01700C               EXCPTOUTH
  131. 01710C               MOVE '1'      ONCE      1
  132. 01720C               END
  133. 01730C               END
  134. 01740C         BYTSIN    IFGT 18818098
  135. 01750C         BYTSIN    IFLE 19925042
  136. 01760C               EXCPTOUTI
  137. 01770C               MOVE '1'      ONCE      1
  138. 01780C               END
  139. 01790C               END
  140. 01800C         BYTSIN    IFGT 19925042
  141. 01810C         BYTSIN    IFLE 21031986
  142. 01820C               EXCPTOUTJ
  143. 01830C               MOVE '1'      ONCE      1
  144. 01840C               END
  145. 01850C               END
  146. 01860C         BYTSIN    IFGT 21031986
  147. 01870C         BYTSIN    IFLE 22138930
  148. 01880C               EXCPTOUTJ
  149. 01890C               MOVE '1'      ONCE      1
  150. 01900C               END
  151. 01910C               END
  152. 01920C         BYTSIN    IFGT 22138930
  153. 01930C         BYTSIN    IFLE 23245874
  154. 01940C               EXCPTOUTK
  155. 01950C               MOVE '1'      ONCE      1
  156. 01960C               END
  157. 01970C               END
  158. 01980C         BYTSIN    IFGT 23245874
  159. 01990C         BYTSIN    IFLE 24352818
  160. 02000C               EXCPTOUTL
  161. 02010C               MOVE '1'      ONCE      1
  162. 02020C               END
  163. 02030C               END
  164. 02040C         BYTSIN    IFGT 24352818
  165. 02050C         BYTSIN    IFLE 25459762
  166. 02060C               EXCPTOUTM
  167. 02070C               MOVE '1'      ONCE      1
  168. 02080C               END
  169. 02090C               END
  170. 02100C         BYTSIN    IFGT 25459762
  171. 02110C         BYTSIN    IFLE 26566706
  172. 02120C               EXCPTOUTN
  173. 02130C               MOVE '1'      ONCE      1
  174. 02140C               END
  175. 02150C               END
  176. 02160C         BYTSIN    IFGT 26566706
  177. 02170C         BYTSIN    IFLE 27673650
  178. 02180C               EXCPTOUTO
  179. 02190C               MOVE '1'      ONCE      1
  180. 02200C               END
  181. 02210C               END
  182. 02220C         BYTSIN    IFGT 27673650
  183. 02230C         BYTSIN    IFLE 28780594
  184. 02240C               EXCPTOUTP
  185. 02250C               MOVE '1'      ONCE      1
  186. 02260C               END
  187. 02270C               END
  188. 02280C         BYTSIN    IFGT 28780594
  189. 02290C         BYTSIN    IFLE 29887538
  190. 02300C               EXCPTOUTQ
  191. 02310C               MOVE '1'      ONCE      1
  192. 02320C               END
  193. 02330C               END
  194. 02340C         BYTSIN    IFGT 29887538
  195. 02350C         BYTSIN    IFLE 30994482
  196. 02360C               EXCPTOUTR
  197. 02370C               MOVE '1'      ONCE      1
  198. 02380C               END
  199. 02390C               END
  200. 02400C         BYTSIN    IFGT 30994482
  201. 02410C         BYTSIN    IFLE 99999999
  202. 02420C               EXCPTOUTS
  203. 02430C               MOVE '1'      ONCE      1
  204. 02440C               END
  205. 02450C               END
  206. 02460OFILSEC1 E            OUT1
  207. 02470O                   REC1    256
  208. 02480O                   REC2    512
  209. 02490OFILSEC2 E            OUT2
  210. 02500O                   REC1    256
  211. 02510O                   REC2    512
  212. 02520OFILSEC3 E            OUT3
  213. 02530O                   REC1    256
  214. 02540O                   REC2    512
  215. 02550OFILSEC4 E            OUT4
  216. 02560O                   REC1    256
  217. 02570O                   REC2    512
  218. 02580OFILSEC5 E            OUT5
  219. 02590O                   REC1    256
  220. 02600O                   REC2    512
  221. 02610OFILSEC6 E            OUT6
  222. 02620O                   REC1    256
  223. 02630O                   REC2    512
  224. 02640OFILSEC7 E            OUT7
  225. 02650O                   REC1    256
  226. 02660O                   REC2    512
  227. 02670OFILSEC8 E            OUT8
  228. 02680O                   REC1    256
  229. 02690O                   REC2    512
  230. 02700OFILSEC9 E            OUT9
  231. 02710O                   REC1    256
  232. 02720O                   REC2    512
  233. 02730OFILSECA E            OUTA
  234. 02740O                   REC1    256
  235. 02750O                   REC2    512
  236. 02760O*ILSECB E            OUTB
  237. 02770O*                REC1    256
  238. 02780O*                REC2    512
  239. 02790O*ILSECC E            OUTC
  240. 02800O*                REC1    256
  241. 02810O*                REC2    512
  242. 02820O*ILSECD E            OUTD
  243. 02830O*                REC1    256
  244. 02840O*                REC2    512
  245. 02850O*ILSECE E            OUTE
  246. 02860O*                REC1    256
  247. 02870O*                REC2    512
  248. 02880O*ILSECF E            OUTF
  249. 02890O*                REC1    256
  250. 02900O*                REC2    512
  251. 02910O*ILSECG E            OUTG
  252. 02920O*                REC1    256
  253. 02930O*                REC2    512
  254. 02940O*ILSECH E            OUTH
  255. 02950O*                REC1    256
  256. 02960O*                REC2    512
  257. 02970O*ILSECI E            OUTI
  258. 02980O*                REC1    256
  259. 02990O*                REC2    512
  260. 03000O*ILSECJ E            OUTJ
  261. 03010O*                REC1    256
  262. 03020O*                REC2    512
  263. 03030O*ILSECK E            OUTK
  264. 03040O*                REC1    256
  265. 03050O*                REC2    512
  266. 03060O*ILSECL E            OUTL
  267. 03070O                   REC1    256
  268. 03080O                   REC2    512
  269. 03090OFILSECM E            OUTM
  270. 03100O                   REC1    256
  271. 03110O                   REC2    512
  272. 03120OFILSECN E            OUTN
  273. 03130O                   REC1    256
  274. 03140O                   REC2    512
  275. 03150OFILSECO E            OUTO
  276. 03160O                   REC1    256
  277. 03170O                   REC2    512
  278. 03180OFILSECP E            OUTP
  279. 03190O                   REC1    256
  280. 03200O                   REC2    512
  281. 03210OFILSECQ E            OUTQ
  282. 03220O                   REC1    256
  283. 03230O                   REC2    512
  284. 03240OFILSECR E            OUTR
  285. 03250O                   REC1    256
  286. 03260O                   REC2    512
  287. 03270OFILSECS E            OUTS
  288. 03280O                   REC1    256
  289. 03290O                   REC2    512
  290. 03300O*ILSECT E            OUTT
  291. 03310O*                REC1    256
  292. 03320O*                REC2    512
  293. 03330O*ILSECU E            OUTU
  294. 03340O*                REC1    256
  295. 03350O*                REC2    512
  296. 03360O*ILSECV E            OUTV
  297. 03370O*                REC1    256
  298. 03380O*                REC2    512
  299. 03390O*ILSECW E            OUTW
  300. 03400O*                REC1    256
  301. 03410O*                REC2    512
  302. 03420O*ILSECX E            OUTX
  303. 03430O*                REC1    256
  304. 03440O*                REC2    512
  305. 03450O*ILSECY E            OUTY
  306. 03460O*                REC1    256
  307. 03470O*                REC2    512
  308. 03480O*ILSECZ E            OUTZ
  309. 03490O*                REC1    256
  310. 03500O*                REC2    512
  311. 03510O*ILSEC1AE            OUT1A
  312. 03520O*                REC1    256
  313. 03530O*                REC2    512
  314. 03540O*ILSEC1BE            OUT1B
  315. 03550O*                REC1    256
  316. 03560O*                REC2    512
  317. 03570O*ILSEC1CE            OUT1C
  318. 03580O*                REC1    256
  319. 03590O*                REC2    512
  320. 03600O*ILSEC1DE            OUT1D
  321. 03610O*                REC1    256
  322. 03620O*                REC2    512
  323. 03630O*ILSEC1EE            OUT1E
  324. 03640O*                REC1    256
  325. 03650O*                REC2    512
  326. 03660O*ILSEC1FE            OUT1F
  327. 03670O*                REC1    256
  328. 03680O*                REC2    512
  329. 03690O*ILSEC1GE            OUT1G
  330. 03700O*                REC1    256
  331. 03710O*                REC2    512
  332. 03720O*ILSEC1HE            OUT1H
  333. 03730O*                REC1    256
  334. 03740O*                REC2    512
  335. 03750O*ILSEC1IE            OUT1I
  336. 03760O*                REC1    256
  337. 03770O*                REC2    512
  338. 03780O*ILSEC1JE            OUT1J
  339. 03790O*                REC1    256
  340. 03800O*                REC2    512
  341. 03810O*ILSEC1KE            OUT1K
  342. 03820O*                REC1    256
  343. 03830O*                REC2    512
  344. 03840O*ILSEC1LE            OUT1L
  345. 03850O*                REC1    256
  346. 03860O*                REC2    512
  347. 03870O*ILSEC1ME            OUT1M
  348. 03880O*                REC1    256
  349. 03890O*                REC2    512
  350. 03900O*ILSEC1NE            OUT1N
  351. 03910O*                REC1    256
  352. 03920O*                REC2    512
  353. 03930O*ILSEC1OE            OUT1O
  354. 03940O*                REC1    256
  355. 03950O*                REC2    512
  356.