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 / USER0.LBR / EXPRNT2.CMD < prev    next >
OS/2 REXX Batch file  |  1979-12-31  |  7KB  |  255 lines

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