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 / MBUG / MBUG098.ARC / USER1.LBR / EXPRNT1.CMD < prev    next >
OS/2 REXX Batch file  |  1979-12-31  |  7KB  |  269 lines

  1. * File:- EXPRNT1.CMD
  2. * Screen Display Printout For Genealogy Programme.
  3. * By, J.L.Read.Merrylands. NSW
  4. * Date:- 07/11/87
  5. * Version 1.2
  6. FIND &CURPER
  7. @ 22,0
  8. @ 22,74 SAY"2"
  9. SET INTEN ON
  10. @ 22,1 SAY"TURN YOUR PRINTER ON"
  11. SET INTEN OFF
  12. @ 22,22 SAY"- Press RETURN When Ready."
  13. SET CONSOLE OFF
  14. WAIT
  15. SET CONSOLE ON
  16. @ 22,0
  17. @ 22,74 SAY"2"
  18. @ 22,1 SAY"Printing Screen Display "
  19. STORE CHR(14) TO OUT
  20. STORE CHR(20) TO IN
  21. SET CONSOLE OFF
  22. SET PRINT ON
  23. ?
  24. ?
  25. ?
  26. ? "&OUT              THE XXXX FAMILY   &IN"
  27. ?
  28. ? "         -================================================================-"
  29. ? "           Ref.No:-",CURPER,"                                Date:- "+DATE()
  30. ?
  31. RELEASE OUT,IN
  32. ? "                        NAME OF BOTH PARENTS AND BIRTH PLACE"
  33. ? "                       -====================================-"
  34. FIND &M2
  35. IF #=0
  36. ? "                           Father Not Known"
  37. ?
  38. ELSE
  39. ? "                          ",TRIM(FIRST:NAME),TRIM(LAST:NAME)+"."
  40. ? "                           Born At:-",BIRTHPL
  41. ENDIF
  42. ? "                           --------------------------"
  43. FIND &M3
  44. IF #=0
  45. ? "                           Mother Not Known"
  46. ?
  47. ELSE
  48. ? "                          ",TRIM(FIRST:NAME),TRIM(LAST:NAME)+"."
  49. ? "                           Born At:-",BIRTHPL
  50. ENDIF
  51. ? "         -================================================================-"
  52. ? "           NAME OF PRIME PERSON, NAME KNOWN AS  AND  BIRTH PLACE"
  53. ? "         ------------------------------------------------------------------"
  54. FIND &M1
  55. ? "          ",TRIM(LAST:NAME)+".",TRIM(FIRST:NAME),TRIM(MID:NAME),";
  56.      ("+TRIM(NICK:NAME)+")"
  57. IF BIRTH:DATE =0
  58. ? "           Birth Date Not Known"
  59. ELSE BIRTH:DATE >0
  60. STORE STR(BIRTH:DATE,8) TO MBRTH
  61. ? "          ",$(MBRTH,1,4)+"."+$(MBRTH,5,2)+"/"+$(MBRTH,7,2),"   Birth Date"
  62. ENDIF
  63. IF DEATH:DATE =0
  64. ? "           Not           Deceased"
  65. ENDIF
  66. IF DEATH:DATE =9
  67. ? "           Death Date Not Known"
  68. ENDIF
  69. IF DEATH:DATE >0 .AND. DEATH:DATE <9
  70. ? "           ------        Deceased"
  71. ENDIF
  72. IF DEATH:DATE >9
  73. STORE STR(DEATH:DATE,8) TO MDETH
  74. ? "          ",$(MDETH,1,4)+"."+$(MDETH,5,2)+"/"+$(MDETH,7,2),"   Deceased"
  75. ENDIF
  76. IF DEATH:DATE =0
  77. ? "           Birth Place:-",BIRTHPL
  78. ELSE
  79. ? "           Birth Place:-",BIRTHPL,"  Resting Place:-",DEATHPL
  80. ENDIF
  81. STORE MARGEPL1 TO MPLACE1
  82. STORE MARGEPL2 TO MPLACE2
  83. STORE MARGEPL3 TO MPLACE3
  84. ? "         -================================================================-"
  85. ? "             SPOUSE, YEAR  AND  PLACE OF MARRIAGE"
  86. ? "         ------------------------------------------------------------------"
  87. FIND &M4
  88.  IF #=0
  89. ? "             Not Married or Spouse Un-Known"
  90.  ELSE
  91. ? "            ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(MDATE4,1,4),"  ",MPLACE1
  92.  ENDIF
  93. FIND &M5
  94.  IF #=0
  95. ? "   "
  96.  ELSE
  97. ? "            ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(MDATE5,1,4),"  ",MPLACE2
  98.  ENDIF
  99. FIND &M6
  100.  IF #=0
  101. ? "   "
  102.  ELSE
  103. ? "            ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(MDATE6,1,4),"  ",MPLACE3
  104.  ENDIF
  105. ? "         -================================================================-"
  106. RELEASE MBRTH,MDETH,MPLACE1,MPLACE2,MPLACE3
  107. ? "            Children, Year and Place of Birth"
  108. ? "            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  109. FIND &M7
  110. IF #=0
  111. ? "                No Children"
  112. ELSE
  113. STORE STR(BIRTH:DATE,8) TO BDAY1
  114. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY1,1,4),"  ",BIRTHPL
  115. ENDIF
  116. FIND &M8
  117. IF #=0
  118. ? "  "
  119. ELSE
  120. STORE STR(BIRTH:DATE,8) TO BDAY2
  121. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY2,1,4),"  ",BIRTHPL
  122. ENDIF
  123. FIND &M9
  124. IF #=0
  125. ? "  "
  126. ELSE
  127. STORE STR(BIRTH:DATE,8) TO BDAY3
  128. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY3,1,4),"  ",BIRTHPL
  129. ENDIF
  130. RELEASE BDAY1,BDAY2
  131. FIND &M10
  132. IF #=0
  133. ? "  "
  134. ELSE 
  135. STORE STR(BIRTH:DATE,8) TO BDAY4
  136. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY4,1,4),"  ",BIRTHPL
  137. ENDIF
  138. FIND &M11
  139. IF #=0
  140. ? "  "
  141. ELSE
  142. STORE STR(BIRTH:DATE,8) TO BDAY5
  143. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY5,1,4),"  ",BIRTHPL
  144. ENDIF
  145. RELEASE BDAY3,BDAY4
  146. FIND &M12
  147. IF #=0
  148. ? "  "
  149. ELSE
  150. STORE STR(BIRTH:DATE,8) TO BDAY6
  151. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY6,1,4),"  ",BIRTHPL
  152. ENDIF
  153. FIND &M13
  154. IF #=0
  155. ? "  "
  156. ELSE
  157. STORE STR(BIRTH:DATE,8) TO BDAY7
  158. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY7,1,4),"  ",BIRTHPL
  159. ENDIF
  160. RELEASE BDAY5,BDAY6
  161. FIND &M14
  162. IF #=0
  163. ? "  "
  164. ELSE
  165. STORE STR(BIRTH:DATE,8) TO BDAY8
  166. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY8,1,4),"  ",BIRTHPL
  167. ENDIF
  168. FIND &M15
  169. IF #=0
  170. ? "  "
  171. ELSE
  172. STORE STR(BIRTH:DATE,8) TO BDAY9
  173. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY9,1,4),"  ",BIRTHPL
  174. ENDIF
  175. FIND &M16
  176. IF #=0
  177. ? "  "
  178. ELSE
  179. STORE STR(BIRTH:DATE,8) TO BDAY10
  180. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY10,1,4),"  ",BIRTHPL
  181. ENDIF
  182. RELEASE BDAY7,BDAY8,BDAY9
  183. FIND &M17
  184. IF #=0
  185. ? "  "
  186. ELSE
  187. STORE STR(BIRTH:DATE,8) TO BDAY11
  188. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY11,1,4),"  ",BIRTHPL
  189. ENDIF
  190. FIND &M18
  191. IF #=0
  192. ? "  "
  193. ELSE
  194. STORE STR(BIRTH:DATE,8) TO BDAY12
  195. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY12,1,4),"  ",BIRTHPL
  196. ENDIF
  197. RELEASE BDAY10,BDAY11
  198. FIND &M19
  199. IF #=0
  200. ? "  "
  201. ELSE
  202. STORE STR(BIRTH:DATE,8) TO BDAY13
  203. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY13,1,4),"  ",BIRTHPL
  204. ENDIF
  205. FIND &M20
  206. IF #=0
  207. ? "  "
  208. ELSE
  209. STORE STR(BIRTH:DATE,8) TO BDAY14
  210. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY14,1,4),"  ",BIRTHPL
  211. ENDIF
  212. FIND &M21
  213. IF #=0
  214. ? "  "
  215. ELSE
  216. STORE STR(BIRTH:DATE,8) TO BDAY15
  217. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY15,1,4),"  ",BIRTHPL
  218. ENDIF
  219. FIND &M22
  220. IF #=0
  221. ? "  "
  222. ELSE
  223. STORE STR(BIRTH:DATE,8) TO BDAY16
  224. ? "               ",TRIM(FIRST:NAME),TRIM(LAST:NAME),$(BDAY16,1,4),"  ",BIRTHPL
  225. ENDIF
  226. @ 22,0
  227. @ 22,74 SAY"2"
  228. @ 22,1 SAY"Printing Biography."
  229. ? "         -================================================================-"
  230. RELEASE BDAY12,BDAY13,BDAY14,BDAY15,BDAY16
  231. STORE CHR(14) TO OUT
  232. STORE CHR(20) TO IN
  233. ? "&OUT           -==  BIOGRAPHY  ==-    &IN"
  234. RELEASE OUT,IN
  235. ? "         ------------------------------------------------------------------"
  236. USE STORIES INDEX STORYREF
  237. FIND &CURPER
  238. IF #=0
  239. ?
  240. ? "                          No Story On File."
  241. ?
  242. ?
  243. ?
  244. ?
  245. ELSE
  246. ? "           ",TEXT1
  247. ? "           ",TEXT2
  248. ? "           ",TEXT3
  249. ? "           ",TEXT4
  250. ? "           ",TEXT5
  251. ? "           ",TEXT6
  252. ENDIF
  253. ? "         -================================================================-"
  254. ?
  255. ?
  256. ?
  257. ?
  258. ?
  259. ?
  260. ?
  261. ?
  262. ?
  263. SET PRINT OFF
  264. SET CONSOLE ON
  265. STORE M1 TO CURPER
  266. USE PERSONS INDEX REF,FATHER,MOTHER,NAME
  267. DO EXPLORE1
  268. RETURN
  269.