home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG092.ARK / USERMAN2.TXT < prev    next >
Text File  |  1986-10-18  |  19KB  |  370 lines

  1. 1000#COMMENT THIS IS USERMAN2
  2. 1020\
  3. )1040PART 4.  ADVANCED FILE MANIPULATION
  4. 1060 
  5. 1080 
  6. 1100A) THE FIND COMMAND
  7. F1120[As you are entering the text, you noticed that you just spelled
  8. @1140license LISENCE and you want to know how many other places
  9. ,1160you have spelled it like that.  Enter]
  10. 1180<FIND LISENCE
  11. K1200[SECRETARY will search the file for the text beginning with the first
  12. J1220nonblank character after the word FIND and ending with the character
  13. :1240preceding the carriage return.  All lines containing
  14. >1260that text string will be printed.  You can terminate the
  15. >1280search by entering control-C.  If the text is not found,
  16. 1300SECRETARY will print
  17. 1320"CHAR NOT FOUND".]
  18. 1340 
  19. 1360B) THE CHANGE COMMANDS
  20. J1380[Now you want to replace all occurrences of the misspelled word with
  21. #1400the correct spelling.  Enter]
  22. 0<CHAL LISENCE^LICENSE
  23. ?1440[SECRETARY will search for all occurrences of LISENCE and
  24. P1460replace it with LICENSE.  The up arrow separates the text string that you 
  25. H1480are searching for from the text string that you are replacing.  If
  26. N1500you want to delete a text string, enter the string to search for, the up
  27. A1520arrow, and a carriage return without the replacing string.]
  28. 1540<CHAL DELETE THIS STRING^
  29. P1560[If you do not want to change all occurrences, but you may want to replace
  30. +1580some depending on the context, enter]
  31. 0<CHNG LISENCE^LICENSE
  32. E1620[Each time LISENCE is found, it will be replaced by LICENSE and
  33. L1640the line will be printed.  If you do want to have the new line replace
  34. O1660the current line, enter a carriage return.  If you do not want the change
  35. K1680to take effect, enter control-A.  If you want to terminate the change
  36. J1700without replacing the line just printed, enter control-C.  All other
  37. 41720characters that you may enter will be ignored.
  38. ?1740After the first occurrence has been replaced, the line is
  39. 81760rescanned for any other occurrences of the string.
  40. ;1780Therefore do not replace a phrase with another phrase
  41. <1800which contains the original pharse i.e. do not replace
  42. =1820X with XY or the result will be an entire line of Y's. 
  43. H1840If you must change X to XY, do it in two steps.  First change X to
  44. !1860something obscure like $+=.
  45. 1880Then change $+= to XY.]
  46. 1900 
  47. 1920C) THE MOVE COMMAND
  48. O1940[After reading over the text that you have entered, you decide that lines
  49. R1960200 through 230 would sound better after line 450.  You can move these lines
  50. 1980by entering]
  51. 2000<MOVE 200,230,451
  52. F2020[Lines 200 through 230 will be copied starting with line 451 and
  53. P2040incremented by 1.  Then lines 200 through 230 will be deleted.  Note that 
  54. Q2060if there was a line 451 or 452, it would be replaced by the text of 200 and
  55. 72080230.  To move only a single line like 200, enter]
  56. 2100<MOVE 200,200,451
  57. 2120\
  58. 2140D) THE COPY COMMAND
  59. J2160[If you want to copy the lines without deleting the old ones, enter]
  60. 2180<COPY 200,230,451
  61. :2200[This is just like the MOVE but without the delete.]
  62. 2220 
  63. 2240E) THE EDIT COMMAND
  64. /2260     [SECRETARY provides the same control
  65. =2280characters for making changes to lines that programmers
  66. >2300use when they are writing a program in North Star BASIC.
  67. >2320The process of making these changes is called "editing".
  68. :2340The commands themselves are called the "Line Editor"
  69. 2360portion of the program.]
  70. ;2380    [To edit (make changes to) a line, you must FIRST
  71. /2400specify which line to change as follows:]
  72. 2420<EDIT 230
  73. @2440    [Notice that the computer will do a return to the left
  74. @2460side of the page but does not print the usual prompt of #.
  75. B2480This is because it now awaits one of the commands below or a
  76. B2500carriage return only which says to cancel the edit operation
  77. @2520while leaving line 230 as it was.  If you have edited part
  78. >2540of the line and you wish to cancel the process and leave
  79. *2560the line as it is, enter control-C.]
  80. ?2580    [After you have entered EDIT 230, and the printer has
  81. 82600positioned down to the beginning of the next line,
  82. ;2620hold down the CTRL button with one finger, then press
  83. A2640the appropriate button with another finger for the command.
  84. B2660Now release both fingers and follow any further instructions
  85. 2680below for that command.
  86. 0Once completed, enter
  87. @2720carriage return to tell the computer to accept the line as
  88. 12740you have changed it.  To verify that it has
  89. 62760been changed, you can list the line by entering]
  90. 2780<LIST 230,230
  91. (2800 The valid control characters are:
  92. "2840CONTROL-A Copy one character
  93. E2860CONTROL-G Copy the remaining portion of the old line to the end
  94.  2880          of the new line.
  95. H2900CONTROL-D Copy up to a specific character.  This control character
  96. J2920          requires a second character to be entered.  SECRETARY will
  97. I2940          scan the old line for this second character, and if it is
  98. F2960          found, copy all the characters up to but not including
  99. D2980          the second character to the new line.  If the second
  100. C3000          occurrence of a character is to be found, control-A
  101. ?3020          must be used to copy the first character before
  102. ,3040          control-D can be used again.
  103. G3060CONTROL-Z Delete one character from the old line.  A percent sign
  104. H3080          is echoed back to indicate a character has been deleted.
  105. '3100CONTROL-Q Backspace one character
  106. J3120          You can also backspace with the character that you defined
  107. +3140          as the backspace character.
  108. I3160CONTROL-Y Toggle insert mode.  The first time control-Y is entered,
  109. I3180          the new line is "opened up" and all subsequent characters
  110. H3200          are added to the new line.  The second time control-Y is
  111. I3220          entered, the new line is "closed" so  that characters are
  112. #3240          no longer inserted.
  113. !3260CONTROL-C Exit this command
  114. $3280CONTROL-N Reedit the new line.
  115. $3290CONTROL-P Reedit the old line.
  116. 3300 
  117. &3320PART 5. WORD PROCESSING COMMANDS
  118. 3340 
  119. N3360[Now that you have edited your file and listed it , you are now ready to
  120. J3380print it.  Certain parameters need to be set before you can do this,
  121. 3400however.]
  122. 3420 
  123. 3440A) THE SPACE COMMAND
  124. A3460[To set the line spacing for other than single space, enter
  125. /3480the number of lines that you want spaced]
  126. #3500     SPACE 2   (double space)
  127. '3520     SPACE 3   (triple space etc)
  128. 3540 
  129. 3560B) THE LINE COMMAND
  130. H3580[The length of the output line does not have to be the same as the
  131. K3600input line.  The maximum length of the output line is 132 characters.
  132. $3620To set the line length, enter]
  133. 3640     LINE 60
  134. 3660     LINE 132
  135. 3680 
  136. 0C) THE OFFSET COMMAND
  137. H3720[Sometimes the printer may print too close to the left edge of the
  138. O3740paper and you may want to move the entire page to the right.  If you want
  139. B3760to move the entire page to the right by 5 characters, enter]
  140. 3780<OFFSET 5
  141. 3800 
  142. 0D) THE MARGIN COMMAND
  143. @3840[This command sets the first and last columns of the page.
  144. @3860To cause the line to be printed starting in position 5 and
  145. #3880ending in position 75, enter]
  146. 3900<MARGIN 5,75
  147. +3920[This could also be done by entering]
  148. 3940     OFFSET 4
  149. 3960     LINE 71
  150. 3980 
  151. 4000E) THE JUSTIFY COMMAND
  152. G4020[To cause the lines contained within brackets to justified to the
  153. 54040right margin in addition to line filled, enter]
  154. 4060<JUSTIFY ON
  155. 4080 
  156. 4100F) COMMENTS
  157. L4120[A comment may be entered into the text file as one of the first lines
  158. I4140before the real text by entering a # and the word COMMENT after the
  159. L4160line number.  Your comment may follow the word COMMENT.  The line will
  160. J4180be listed during the LIST command, but it will be ignored during the
  161. 4200PRINT command.]
  162. >4220   1000#COMMENT THIS LINE WILL BE LISTED BUT NOT PRINTED
  163. 4240\
  164. 4260G) THE TITLE COMMAND
  165. 74280[To set up a title of up to 50 characters, enter]
  166. #4300<TITLE THIS TEXT IS THE TITLE
  167. C4320[The title begins with the first nonblank character after the
  168. 84340word TITLE and ends with the carriage return.  The
  169. 94360title is printed on the first line of any page that
  170. 4380also gets a page number.]
  171. 4400 
  172. 0H) THE TABSET COMMAND
  173. J4440[Up to 10 tabs can be set.  To set tabs at columns 5, 10, 30 and 45,
  174. 4460enter]
  175. 4480<TABSET 5,10,30,45
  176. 4500 
  177. 0I) THE REPEAT COMMAND
  178. =4540[You can also get multiple copies printed.  To get five
  179. 4560copies, enter]
  180. 4580<REPEAT 5
  181. 4600 
  182. 4620J) THE PAGE COMMAND
  183. J4640[The dimensions of a page can also be changed.  A normal 8 1/2 by 11
  184. O4660inch page contains 66 lines total.  With a one inch margin at the top and
  185. K4680bottom, there are 54 print lines with the first line on line 7.  This
  186. 84700standard page is the default but could be entered]
  187. 4720<PAGE 66,54,7
  188. 4740 
  189. #4760K) THE PAGE NUMBERING COMMAND
  190. @4780[Unless your text is very short, only a few pages will fit
  191. @4800in memory at one time.  You may have pages 1 through 10 in
  192. F4820one file and pages 11 through 20 in a second file.  To print the
  193. B4840second file, it is necessary to tell SECRETARY to begin with
  194. G4860page number 11.  This is done with the PNUM command.  Be sure not
  195. A4880to confuse PNUM with PAGE.  The highest page number is 249.
  196. #4900Note the three uses of PNUM:]
  197. &4920     PNUM 5  (begin with page 5)
  198. @4940     PNUM 0  (begin with page 1 but print it starting with
  199. '4960                page 2 on page 2)
  200. )4980     PNUM 251 (omit page numbering)
  201. 5000 
  202. 5020L) THE UNIT COMMAND
  203. N5040[To cause the print to come out on an additional printer rather than the
  204. ;5060CRT, enter the unit number  as described in  PART 2.]
  205.  
  206. 5080<UNIT 1
  207. 5100\
  208. 5120M) IMBEDDED COMMANDS
  209. E5140[Many of these commands will be the same every time you print a
  210. G5160particular file and it is inconvenient to reenter them each time.
  211. E5180To make this more automatic, all of the commands here in PART 5
  212. 5200except REPEAT
  213. N5220may be entered in the text file preceded by a #.  They must be the first
  214. K5240lines in the file.  Note how they appear in your listing of DEMOFILE.
  215. @5260The imbedded commands MUST be the first lines in the file.
  216. @5280The only exception to this rule is the COMMENT, SPACE, and
  217. ;5300CHAIN commands which can be imbedded within the file.
  218. >5320An invalid command or a line without a # right after the
  219. A5340line number will terminate the search for imbedded commands
  220. >5360and treat the remaining commands as text to be printed.]
  221. 5380    10#LINE 70
  222. (5400    20#TITLE SECRETARY USER MANUAL
  223. 5420 
  224. 5440N) THE CHAIN COMMAND
  225. K5460[This command will load the file and automatically begin printing it.
  226. L5480If this command is imbedded as the last line in a file, multiple files
  227. N5500can be printed as if they were one document.  Printing will begin on the
  228. L5520next available line, so if you want the chained file to begin on a new
  229. H5540page, insert a page eject back slash at the beginning of the file.
  230. *5560To automatically chain FILE2, enter]
  231. 5580<CHAIN FILE2
  232. 5600 
  233. 5620O) THE PRINT COMMAND
  234. L5640[You are now ready to print your final copy.  Note that after you type
  235. O5660the "T" of the word "PRINT" and before you enter the carriage retrun, you
  236. M5680must position the paper to the line above the first line of print.  The
  237. 5700command is simply]
  238. 5720<PRINT
  239. J5740[The print can be terminated by entering control-C.  If your printer
  240. ;5760does not print continuous forms, SECRETARY will pause
  241. J5780after the last line on a page and wait for you to insert a new page.
  242. R5800Position the paper on the first line and enter a carriage return to continue
  243. K5820printing.  You can also begin printing at a line other than the first
  244. P5840line by following the PRINT command with a starting line number.  Caution,
  245. P5860however, since the imbedded commands will be ignored if you begin printing
  246. B5880after those lines.  To begin printing with line 1234, enter]
  247. 5900<PRINT 1234
  248. 5920\
  249. ,5940PART 6. MERGING DATA FROM A BASIC FILE
  250. 5960 
  251. O5980[One of the powerful features of this program is the ability to take data
  252. L6000from a North Star BASIC data file and insert it into the printed text.
  253. L6020The obvious application is to insert names and addresses.  On the disk
  254. O6040that you received, there were three additional files: BASICPGM, SAMPLTTR,
  255. N6060and SAMPDATA.  BASICPGM is a sample BASIC program to create a data file,
  256. J6080SAMPDATA, of names, addresses and data.  SAMPLTTR is a sample letter
  257. 16100which uses SAMPDATA as the data to insert.]
  258. 6120 
  259. N6140[The BASIC data file must be a type 3 file.  It must contain only string
  260. K6160records of variable length but less than 256 characters.  Each string
  261. N6180record contains all of the data necessary for one letter.  The record is
  262. K6200divided into substrings by a + sign.  The data file for the editor, a
  263. O6220letter for instance, must contain an up arrow at each place that you want
  264. 6240to insert a substring.]
  265. 6260 
  266. L6280[To use this facility, first LOAD the letter SAMPLTTR.  Then enter the
  267. 6300command ]
  268. 6320<MERGE SAMPDATA
  269. L6340[The program will find SAMPDATA on disk, check for a type 3 file, load
  270. P6360the first sector into a buffer at the top of the data area, and check that
  271. L6380the first record is a string record less than 256 bytes long.  If your
  272. O6400letter is so long that it approaches the top of the data area so there is
  273. O6420no room for the BASIC data record, it will print the message "NO ROOM FOR
  274. L6440BUFFER".  The available memory will be reduced by 513 bytes to provide
  275. !6460for the BASIC file buffer.]
  276. 6480 
  277. K6500[Once you have LOADed the letter and MERGEd the BASIC data, enter the
  278. Q6520PRINT command.  It will automatically print one copy of the letter for each
  279. <6540record in the file.  You do not need to use the REPEAT
  280. ;6560command.  If you stop the print with a control-C, you
  281. ,6580must execute the MERGE command again.]
  282. 6600 
  283. M6620[If there are more up arrows in the file than substrings in the record,
  284. K6640the extra ^ will be ignored.  If there are fewer ^ in the letter than
  285. M6660substrings in the record, the extra substrings will be ignored and each
  286. M6680letter will begin with a new record.  If you are entering data into the
  287. M6700body of the letter, the data must be able to fit on the line containing
  288. N6720the ^.  Characters that do not fit on the line will be ignored since the
  289. >6740editor does not know where to logically split the data.]
  290. 6760 
  291. B6780[Look at BASICPGM and SAMPLTTR for specific examples of this
  292. R6800technique.  BASICPGM is provided as an example only.  You will want to write
  293. G6820a more sophisticated program to allow addition, modification, and
  294. B6840deletion of data, but this will depend on your application.]
  295. 6860\
  296. 6880PART 7. ADVANCED FEATURES
  297. 6900 
  298. 6920A) THE CALL COMMAND
  299. K6940[During the PRINT command, SECRETARY will scan the line for a special
  300. R6960character and call your own subroutine if the character appears in the line.
  301. Q6980To call your routine for all lines, search for a carriage return, 0D, which
  302. M7000will be on each line.  To ignore all lines, search for the character 00
  303. 37020hex.  This can be used to rescan the line for
  304. ;7040special printers.  A sample test routine is coded in 
  305. L7060SECRETARY  at 2D33.    The address of the buffer with the line will be
  306. C7080in the HL registers and SECRETARY expects the address of the 
  307. J7100new buffer line to be  in DE registers.  The other registers may be 
  308. H7120destroyed.  This is an advanced technique and the user should be a
  309. L7140proficient assembler language programmer before attempting to use this
  310. 7160feature.]
  311. 7180<CALL 2D33,0D
  312. 7200 
  313. 7220B) FILES TOO BIG
  314. ;7240[If a file on disk is larger than memory, the message
  315. H7260"FILE TOO BIG" will be printed when the file is loaded.  SECRETARY
  316. O7280will read as much as it can into memory.  If the file was large, but the 
  317. R7300data itself within the file is small enough to fit in memory, SECRETARY will
  318. K7320work correctly and the message can be ignored.  Otherwise some of the
  319. J7340data will be lost.  To be sure that the file was small enough to fit
  320. P7360 or to salvage as much of the data as possible if it was too large, enter]
  321. 7380<RECOVER
  322. 7400 
  323. 7420C) FILE TOO SMALL
  324. J7440[If the file on disk is too small to hold all of the data in memory,
  325. @7460the message "FILE TOO SMALL" will be printed when the file
  326. ?7480is saved.  SECRETARY will write as much of the file as it
  327. #7500can.  When the file is loaded
  328. I7520back later, however, some of the data will be missing.    Since the
  329. P7540end-of-file indicator will be missing, SECRETARY  will not be able to tell
  330. O7560where the file ends.  To salvage as much of this data as possible, enter]
  331. 7580<RECOVER
  332. 7600\
  333. 7620D) THE BLOAD COMMAND
  334. Q7640[A BASIC program is not in the format that can be processed with SECRETARY.
  335. R7660To load a BASIC program and convert it to SECRETARY format in memory, enter]
  336. 7680<BLOAD BASIC-program-name
  337. R7700[You can then use the editing features of SECRETARY on it.  The line numbers
  338. M7720in the BASIC program must not exceed 9999 so you may have to do a BASIC
  339. R7740RENUMBER before BLOADing the file.  NOTE: RENUMBER in SECRETARY only changes
  340. O7760the line numbers at the left side of the line and not references to those
  341. P7780line numbers within a line (such as GOTO, GOSUB etc) as the BASIC RENUMBER
  342. ;7800does.  Use CHNG or CHALL to change those references.]
  343. 7820 
  344. 7840E) THE BSAVE COMMAND
  345. L7860[This is the opposite of BLOAD.  It takes a SECRETARY fomatted file in
  346. N7880memory, converts it to North Star BASIC, and writes it to disk.  Be sure
  347. O7900that the disk file is already created, it is type 2 file, and it is large
  348. R7920enough to include any changes that you may have added to the program.  Since
  349. M7940the conversion requires searching a large table, the program may take a
  350. R7960minute or two to perform this command.  To save the BASIC  program BASICPGM,
  351. 7980enter]
  352. 8000<BSAVE BASICPGM
  353. 8020 
  354. 0F) THE EXPAND COMMAND
  355. N8060[There may be times when you do not need the CONFIGURE, BSAVE, and BLOAD
  356. H8080commands and you are short of space.  You can wipe out these three
  357. L8100commands and get an extra 2K of memory for your text file by entering]
  358.  
  359. 8120<EXPAND
  360. R8140[This will cause the data area to be EXPANDed.  &CAUTION: Do not save a copy
  361. R8160of the program after entering EXPAND or you will permanently lose the BSAVE,
  362. O8180BLOAD, and CONFIGURE commands.  BE SURE TO SAVE ANY TEXT IN THE DATA AREA
  363. N8200BEFORE ENTERING EXPAND.  ANY TEXT IN THE DATA AREA AFTER ENTERING EXPAND
  364. "8220WILL BE PERMANENTLY LOST.& ]
  365. 8240 
  366. 0G) TO QUIT AND RETURN
  367. C8280[If you need to QUIT SECRETARY to return to DOS and you later
  368. @8300wish to return without destroying the data, jump to 2D04.]
  369. 8320#CHAIN USERMAN3
  370.