/* REXX FAMMATCH This subroutine of FAMTREE was cloned from FAMSYNC because it needs much of the same logic. FAMMATCH is intended to be called with two pairs of family names and sequences. FAMMATCH jones acafe smith abbde These two table keys will be fetched and presented for correction or realignment. |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| | | | WARNING: EMBEDDED COMPONENTS. | | See text following TOOLKIT_INIT | | | |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| Use '(routine name) ?' for HELP-text. Written by Frank Clarke rexxhead@yahoo.com 20260717 cloned from FAMSYNC. Impact Analysis . (subrof) FAMTREE . ISPPLIB TANDEM (imbed) . ISPPLIB TANDEMH (imbed) . SYSEXEC TRAPOUT Modification History 20260928 fxc Annotate imbedded elements; */ arg argline address TSO /* REXXSKEL ver.20240618 */ arg parms "((" opts signal on syntax signal on novalue call TOOLKIT_INIT /* conventional start-up -*/ rc = Trace( "O" ); rc = Trace( tv ) info = parms /* to enable parsing */ call A_INIT /* Initialization -*/ call C_SURVEY /* Inventory tables -*/ call I_ISPF_OPS /* tables and panels -*/ if \sw.0nested then call DUMP_QUEUE 'quiet' /* -*/ exit /*@ FAMMATCH */ /* Initialization . ----------------------------------------------------------------- */ A_INIT: /*@ */ if branch then call BRANCH address TSO openmode. = "WRITE" openmode.1 = "NOWRITE" parse value "" with, zerrsm parse value "0 0 0 0 0 0 0" with, maxlen . parse var info fam1 seq1 fam2 seq2 info if fam1 = '' then call HELP /* ...and exit -*/ if fam2 = '' then do helpmsg = "Calling syntax incorrect. ", "You sent <<"argline">> which does not specify", "two table names." call HELP /* -*/ end /* No fam2 */ parse value fam1 fam2 with, fam1d fam2d . if Left( isptlib,1 ) = "'" then, isptlib = Strip( isptlib,,"'" ) /* no quotes */ else isptlib = Userid()"."isptlib /* fully-qualified */ tabl1 = "'"isptlib"("fam1")'" /* table for fam1 */ stat1 = Sysdsn( tabl1 ) if stat1 <> "OK" then, helpmsg = tabl1 "not found. " tabl2 = "'"isptlib"("fam2")'" /* table for fam2 */ stat2 = Sysdsn( tabl2 ) if stat2 <> "OK" then, helpmsg = helpmsg "; " tabl2 "not found. " if helpmsg <> '' then call HELP /* ...and exit -*/ return /*@ A_INIT */ /* Inventory the tables. is unquoted, fully-qualified. . ----------------------------------------------------------------- */ C_SURVEY: /*@ */ if branch then call BRANCH address ISPEXEC "CONTROL ERRORS RETURN " call CS_SPIN_FAM fam1 /* Process this family -*/ call CS_SPIN_FAM fam2 /* Process this family -*/ return /*@ C_SURVEY */ /* Process this family . ----------------------------------------------------------------- */ CS_SPIN_FAM: /*@ */ if branch then call BRANCH address ISPEXEC arg thisfam call CSA_OPEN_FAM /* TBOPEN -*/ return /*@ CS_SPIN_FAM */ /* ISPTLIB is unquoted and fully-qualified. . ----------------------------------------------------------------- */ CSA_OPEN_FAM: /*@ */ if branch then call BRANCH address ISPEXEC "LIBDEF ISPTLIB DATASET ID( '"isptlib"' ) STACK" "TBSTATS" thisfam "STATUS1( s1 ) STATUS2( s2 )" if s1 > 1 then do zerrsm = "Table" thisfam "not available." say zerrsm zerrlm = "Table" thisfam "not found in the ISPTLIB library chain" "SETMSG MSG( ISRZ002 )" sw.0error_found = "1"; return end; else, if s2 = 1 then do /* table is not open */ "TBOPEN " thisfam openmode.noupdt if rc > 4 then do sw.0error_found = 1 zerrsm = "Table did not OPEN" zerrlm = "Table" thisfam "cannot be opened due to prior", "enqueues." "SETMSG MSG( ISRZ002 )" end end else "TBTOP" thisfam "LIBDEF ISPTLIB" return /*@ CSA_OPEN_FAM */ /* ISPF operations. Table @JOIN has been loaded with two families' data. Display @JOIN and let the user select TWO entries for comparison, one from each family. . ----------------------------------------------------------------- */ I_ISPF_OPS: /*@ */ if branch then call BRANCH address ISPEXEC call IB_EXTRACT_ASSETS /* extract panels -*/ parse value fam1 seq1 fam2 seq2 with, jjfam1 jjseq1 jjfam2 jjseq2 . call IDS_SYNC_ENTRIES /* Sync missing values -*/ call IZ_EPILOG /* purge panels -*/ return /*@ I_ISPF_OPS */ /* Extract all ISPF assets and LIBDEF into place. . ----------------------------------------------------------------- */ IB_EXTRACT_ASSETS: /*@ */ if branch then call BRANCH address ISPEXEC call DEIMBED /* -*/ dd = "" do Words(ddnlist) /* each LIBDEF DD */ parse value ddnlist dd with dd ddnlist @ddn = @ddn.dd /* PLIB322 <- PLIB */ "LIBDEF ISP"dd "LIBRARY ID("@ddn") STACK" end ddnlist = ddnlist dd return /*@ IB_EXTRACT_ASSETS */ /* Retrieve the two keys from their respective tables and display the data for correction. . GIVEN : JJFAM1 JJSEQ1 JJFAM2 JJSEQ2 . ----------------------------------------------------------------- */ IDS_SYNC_ENTRIES: /*@ */ if branch then call BRANCH address ISPEXEC ids_tv = trace() /* what setting at entry ? */ "TBVCLEAR" jjfam1 /* clear pool */ ftseq = jjseq1 "TBGET" jjfam1 f1seq = ftseq f1name = ftname f1email = ftemail f1birth = ftbirth f1death = ftdeath f1spouse = ftspouse f1spbd = ftspbd f1spdd = ftspdd f1speml = ftspeml f1weddt = ftweddt f1text = fttext f1rels = ftrels /* other family data */ rc = Trace( "O" ) ; rc = trace( ids_tv ) "TBVCLEAR" jjfam2 /* clear pool */ ftseq = jjseq2 "TBGET" jjfam2 f2seq = ftseq f2name = ftname f2email = ftemail f2birth = ftbirth f2death = ftdeath f2spouse = ftspouse f2spbd = ftspbd f2spdd = ftspdd f2speml = ftspeml f2weddt = ftweddt f2text = fttext f2rels = ftrels /* other family data */ rc = Trace( "O" ) ; rc = trace( ids_tv ) parse value jjfam1 jjfam2 jjseq1 jjseq2 with, fam1 fam2 seq1 seq2 . do forever "DISPLAY PANEL( TANDEM ) " /* Shows matching entries */ if rc > 0 then leave /* done processing */ if zcmd <> '' then , call IDSC_PROCESS_CMD /* Command line entry -*/ zcmd = '' if sw.0Update_Rels then do /* a change happened */ sw.0Update_Rels = 0 call IDSU_UPDATE_RELS /* Sync FTRELS across both -*/ end end /* forever */ return /*@ IDS_SYNC_ENTRIES */ /* There is text in ZCMD. Parse and execute. GIVEN : FAM1 SEQ1 FAM2 SEQ2 . ----------------------------------------------------------------- */ IDSC_PROCESS_CMD: /*@ */ if branch then call BRANCH address ISPEXEC parse var zcmd verb tofamily . if verb = "LINK" then do /* Just update RELs */ sw.0Update_Rels = 1 return /* Let IDSU execute */ end /* LINK */ if tofamily = '' then do zerrlm = " is required." "SETMSG MSG( ISRZ002 ) " return end /* What?? */ if WordPos( verb,"FILLIN UPDATE" ) = 0 then do zerrlm = verb "is an unknown command." "SETMSG MSG( ISRZ002 ) " return end /* What?? */ if WordPos( tofamily,fam1 fam2 ) = 0 then do zerrlm = "What?? There is no" tofamily "in the current cycle." "SETMSG MSG( ISRZ002 ) " return end /* wrong family name */ if verb = "FILLIN" then do /* copy TO the NAMED family any field that is blank for the NAMED family and non-blank in the other. */ call IDSCF_FILLIN_VARS /* Plug gaps -*/ sw.0Update_Rels = 1 end /* FILLIN */ else, if verb = "UPDATE" then do /* Rewrite the record for the NAMED family to the original table. */ call IDSCR_RELOAD_TABLE /* update the -*/ sw.0Update_Rels = 1 end /* FILLIN */ return /*@ IDSC_PROCESS_CMD */ /* FILLIN family: _name and _seq are already filled in. Any other field that is BLANK for the named family should be filled in from the other set. Update the original table. . FTRELS is a peculiar case: when doing a 'fillin', FTRELS is a string of tag+tagval pairs, and to FILLIN, those pairs must be combined and condensed. . ----------------------------------------------------------------- */ IDSCF_FILLIN_VARS: /*@ */ if branch then call BRANCH address ISPEXEC if tofamily = fam1 then do parse value f1email f2email with f1email . parse value f1birth f2birth with f1birth . parse value f1death f2death with f1death . if f1spouse = '' then f1spouse = f2spouse parse value f1spbd f2spbd with f1spbd . parse value f1spdd f2spdd with f1spdd . parse value f1speml f2speml with f1speml . parse value f1weddt f2weddt with f1weddt . if f1text = '' then f1text = f2text call IDSCFC_CONDENSE_RELS /* combine and condense -*/ f1rels = Space( slug,1 ) end /* fam1 */ else do parse value f2email f1email with f2email . parse value f2birth f1birth with f2birth . parse value f2death f1death with f2death . if f2spouse = '' then f2spouse = f1spouse parse value f2spbd f1spbd with f2spbd . parse value f2spdd f1spdd with f2spdd . parse value f2speml f1speml with f2speml . parse value f2weddt f1weddt with f2weddt . if f2text = '' then f2text = f1text call IDSCFC_CONDENSE_RELS /* combine and condense -*/ f2rels = Space( slug,1 ) end /* fam2 */ zerrlm = tofamily "filled in." call IDSCR_RELOAD_TABLE /* update the -*/ return /* Combine and condense GIVEN : f1rels f2rels . ----------------------------------------------------------------- */ IDSCFC_CONDENSE_RELS: /*@ */ if branch then call BRANCH address TSO parse value "" with ztags zvals. slug = f1rels f2rels /* combined */ do while slug <> '' parse var slug t1 v1 slug /* get pair */ if t1 = tofamily then iterate /* not my own! */ if WordPos( t1,ztags ) > 0 then iterate ztags = ztags t1 zvals.t1 = v1 end /* slug */ do Words( ztags ) /* */ parse var ztags tag ztags slug = slug tag zvals.tag end /* ztags */ return /*@ IDSCFC_CONDENSE_RELS */ /* UPDATE the named family: TBVCLEAR to zap all existing FT_ variables, then set FTSEQ and TBGET the original row (which reloads all FT_ variables). Replace all FT_ variables from the F1_ or F2_ variables on the screen. TBMOD the FTSEQ back to the original table. . ----------------------------------------------------------------- */ IDSCR_RELOAD_TABLE: /*@ */ if branch then call BRANCH address ISPEXEC "TBVCLEAR" tofamily /* clean pool */ if tofamily = fam1 then , parse value seq1 seq2 with , ftseq otherseq . else, parse value seq2 seq1 with , ftseq otherseq . "TBGET" tofamily /* it should still be open */ if tofamily = fam1 then do ftname = f1name ftemail = f1email ftbirth = f1birth ftdeath = f1death ftspouse = f1spouse ftspbd = f1spbd ftspdd = f1spdd ftspeml = f1speml ftweddt = f1weddt fttext = f1text ftrels = f1rels end /* fam1 */ else do /* fam2 */ ftname = f2name ftemail = f2email ftbirth = f2birth ftdeath = f2death ftspouse = f2spouse ftspbd = f2spbd ftspdd = f2spdd ftspeml = f2speml ftweddt = f2weddt fttext = f2text ftrels = f2rels end /* fam2 */ zerrlm = zerrsm ";" tofamily "updated." "TBMOD" tofamily /* it should still be open */ zerrlm = '' return /*@ IDSCR_RELOAD_TABLE */ /* Sync FTRELS across both families. . GIVEN : jjfam1 jjseq1 f1rels jjfam2 jjseq2 f2rels . A (rels) entry looks like: SMITH ACE with the family name (of a different family) followed by the FTSEQ value for that table. It might be completely empty, too. . Load (rels) to INFO and use KEYWD to zap its value, then add (otherfam) (otherseq) to (rels) before restoring it to its proper place on that table. . ----------------------------------------------------------------- */ IDSU_UPDATE_RELS: /*@ */ if branch then call BRANCH address ISPEXEC info = f1rels @z = KEYWD( jjfam2 ) /* zap any existing value */ f1rels = info jjfam2 jjseq2 "TBVCLEAR" jjfam1 /* clear pool */ ftseq = jjseq1 "TBGET" jjfam1 ftrels = f1rels "TBMOD" jjfam1 info = f2rels @z = KEYWD( jjfam1 ) /* zap any existing value */ f2rels = info jjfam1 jjseq1 "TBVCLEAR" jjfam2 /* clear pool */ ftseq = jjseq2 "TBGET" jjfam2 ftrels = f2rels "TBMOD" jjfam2 return /*@ IDSU_UPDATE_RELS */ /* . ----------------------------------------------------------------- */ IZ_EPILOG: /*@ */ if branch then call BRANCH address ISPEXEC "TBCLOSE" fam1 "TBCLOSE" fam2 dd = "" do Words(ddnlist) /* each LIBDEF DD */ parse value ddnlist dd with dd ddnlist @ddn = @ddn.dd /* PLIB322 <- PLIB */ "LIBDEF ISP"dd address TSO "FREE FI("@ddn")" end ddnlist = ddnlist dd return /*@ IZ_EPILOG */ /* . ----------------------------------------------------------------- */ LOCAL_PREINIT: /*@ customize opts */ address TSO rc = Trace( "O" ) ; rc = Trace( tv ) parse value KEYWD( "ISPTLIB" ) "'"DFLTTLIB()"'" with , isptlib . return /*@ LOCAL_PREINIT */ /* subroutines below LOCAL_PREINIT are not selected by SHOWFLOW */ /* Parse out the embedded components at the back of the source code. . ----------------------------------------------------------------- */ DEIMBED: Procedure expose, /*@ */ (tk_globalvars) ddnlist @ddn. daid. address TSO dlm = '5d5d5d'x /* three close-parens */ fb80po.0 = "NEW DELETE REU UNIT(SYSDA) SPACE(1 5) TRACKS DIR(40)", "RECFM(F B) LRECL(80) BLKSIZE(0)" fb80po.1 = "SHR REU" parse value "" with ddnlist @ddn. daid. lastln = sourceline() currln = lastln /* */ if Left(sourceline(currln),2) <> "*/" then return currln = currln - 1 /* previous line */ "NEWSTACK" address ISPEXEC do while Left( sourceline( currln ),2 ) <> "/*" text = sourceline(currln) /* save with a short name ! */ if Left( text,3 ) = dlm then do /* package the queue */ parse var text . ddn mbr . /* PLIB PANL001 maybe */ if length(ddn) > 4 then do /* data, not ISPF */ call DESPOOL /* -*/ currln = currln - 1 /* previous line */ iterate end if Pos(ddn,ddnlist) = 0 then do /* doesn't exist */ ddnlist = ddnlist ddn /* keep track */ @ddn = ddn || Random(999) /* PLIB322 maybe */ @ddn.ddn = @ddn /* @ddn.PLIB = PLIB322 */ address TSO "ALLOC FI("@ddn")" fb80po.0 "LMINIT DATAID(DAID) DDNAME("@ddn")" daid.ddn = daid end daid = daid.ddn "LMOPEN DATAID("daid") OPTION(OUTPUT)" do queued() parse pull line "LMPUT DATAID("daid") MODE(INVAR) DATALOC(LINE) DATALEN(80)" end "LMMADD DATAID("daid") MEMBER("mbr")" "LMCLOSE DATAID("daid")" end /* package the queue */ else push text /* onto the top of the stack */ currln = currln - 1 /* previous line */ end /* while */ address TSO "DELSTACK" return /* Subroutine of DEIMBED for non-ISPF data. Given: the stack, ddn, and mbr . ----------------------------------------------------------------- */ DESPOOL: /*@ */ if branch then call BRANCH address TSO if WordPos( ddn,ddnlist ) = 0 then, ddnlist = Space( ddnlist ddn,1 ) if Sysdsn(ddn".DATA") <> "OK" then, "ALLOC FI("ddn") DA("ddn".DATA)" fb80po.0 "ALLOC FI("ddn") DA("ddn".DATA("mbr")) SHR REU" "EXECIO" queued() "DISKW" ddn "(FINIS" "DELSTACK" "NEWSTACK" /* re-establish */ return /*@ DESPOOL */ return /*@ DEIMBED */ /* . ----------------------------------------------------------------- */ HELP: /*@ */ address TSO;"CLEAR" if helpmsg <> "" then say helpmsg ex_nam = Left(exec_name,8) /* predictable size */ say " " say " "ex_nam" compares two FT-type table entries to find matching data " say " and presents the results for further processing. " say " " say " Syntax: "ex_nam" family1 seq1 (Required)" say " family2 seq2 (Required)" say " (( ISPTLIB inputtbl (Defaults)" say " " say " family_ names an FT-type table on ISPTLIB. " say " " say " seq_ names an FT-type table row within its family. " say " " say " The two entries are presented in tandem showing all " say " fields. See the associated HELP panel for information " say " about correcting and aligning the paired entries. " say " " say " inputtbl names an ISPF table library on which can be found " say " and . If is not " say " specified, DFLTTLIB will be called to supply a " say " value. " say " " "NEWSTACK"; pull ; "CLEAR" ; "DELSTACK" say " Debugging tools provided include: " say " " say " MONITOR: can be used by the programmer to display key information" say " throughout processing. Monitor is not used in the " say " canonical REXXSKEL. " say " " say " NOUPDT: by-pass all update logic. " say " " say " BRANCH: show all paragraph entries. " say " " say " TRACE tv: will use value following TRACE to place the execution " say " into REXX TRACE Mode. " say " " say " " say " Debugging tools can be accessed in the following manner: " say " " say " TSO "ex_nam" parameters (( debug-options " say " " say " For example: " say " " say " TSO "ex_nam" (( trace ?r branch " if sysvar("SYSISPF") = "ACTIVE" then, address ISPEXEC "CONTROL DISPLAY REFRESH" exit /*@ HELP */ /* . ----------------------------------------------------------------- */ BRANCH: Procedure expose, /*@ */ sigl exec_name rc = trace( "O" ) /* we do not want to see this */ arg brparm . origin = sigl /* where was I called from ? */ do currln = origin to 1 by -1 /* inch backward to label */ if Right(Word(Sourceline(currln),1),1) = ":" then do parse value sourceline(currln) with pgfname ":" . /* Label */ leave ; end /* name */ end /* currln */ select when brparm = "NAME" then return(pgfname) /* Return full name */ when brparm = "ID" then do /* wants the prefix */ parse var pgfname pgfpref "_" . /* get the prefix */ return(pgfpref) end /* brparm = "ID" */ otherwise say left(sigl,6) left(pgfname,40) exec_name "Time:" time("L") end /* select */ return /*@ BRANCH */ /* . ----------------------------------------------------------------- */ DUMP_QUEUE: /*@ Take whatever is in stack */ rc = trace( "O" ) /* and write to the screen */ address TSO arg mode . "QSTACK" /* how many stacks? */ stk2dump = rc - tk_init_stacks /* remaining stacks */ if stk2dump = 0 & queued() = 0 then return if mode <> "QUIET" then, say "Total Stacks" rc , /* rc = #of stacks */ " Begin Stacks" tk_init_stacks , /* Stacks present at start */ " Excess Stacks to dump" stk2dump do dd = rc to tk_init_stacks by -1 /* empty each one. */ if mode <> "QUIET" then, say "Processing Stack #" dd " Total Lines:" queued() do queued();parse pull line;say line;end /* pump to the screen */ "DELSTACK" /* remove stack */ end /* dd = 1 to rc */ return /*@ DUMP_QUEUE */ /* Handle CLIST-form keywords added 20020513 . ----------------------------------------------------------------- */ CLKWD: Procedure expose info /*@ hide all except info */ arg kw kw = kw"(" /* form is 'KEY(DATA)' */ kw_pos = Pos(kw,info) /* find where it is, maybe */ if kw_pos = 0 then return "" /* send back a null, not found*/ rtpt = Pos(") ",info" ",kw_pos) /* locate end-paren */ slug = Substr(info,kw_pos,rtpt-kw_pos+1) /* isolate */ info = Delstr(info,kw_pos,rtpt-kw_pos+1) /* excise */ parse var slug (kw) slug /* drop kw */ slug = Reverse(Substr(Reverse(Strip(slug)),2)) return slug /*@CLKWD */ /* Handle multi-word keys 20020513 . ----------------------------------------------------------------- */ KEYWD: Procedure expose info /*@ hide all vars, except info*/ arg kw kw_pos = wordpos(kw,info) /* find where it is, maybe */ if kw_pos = 0 then return "" /* send back a null, not found*/ kw_val = word(info,kw_pos+Words(kw))/* get the next word */ info = Delword(info,kw_pos,2) /* remove both */ return kw_val /*@ KEYWD */ /* . ----------------------------------------------------------------- */ KEYPHRS: Procedure expose, /*@ */ info helpmsg exec_name /* except these three */ arg kp wp = wordpos(kp,info) /* where is it? */ if wp = 0 then return "" /* not found */ front = subword(info,1,wp-1) /* everything before kp */ back = subword(info,wp+1) /* everything after kp */ parse var back dlm back /* 1st token must be 2 bytes */ if length(dlm) <> 2 then /* Must be two bytes */ helpmsg = helpmsg, "Invalid length for delimiter("dlm") with KEYPHRS("kp")", info if wordpos(dlm,back) = 0 then /* search for ending delimiter*/ helpmsg = helpmsg, "No matching second delimiter("dlm") with KEYPHRS("kp")", info if helpmsg <> "" then call HELP /* Something is wrong */ parse var back kpval (dlm) back /* get everything b/w delim */ info = front back /* restore remainder */ return Strip(kpval) /*@ KEYPHRS */ /* . ----------------------------------------------------------------- */ NOVALUE: /*@ */ say exec_name "raised NOVALUE at line" sigl say " " say "The referenced variable is" condition("D") say " " zsigl = sigl signal SHOW_SOURCE /*@ NOVALUE */ /* . ----------------------------------------------------------------- */ SHOW_SOURCE: /*@ */ call DUMP_QUEUE /* Spill contents of stacks -*/ if sourceline() <> "0" then /* to screen */ say sourceline(zsigl) rc = trace( "?R" ) nop exit /*@ SHOW_SOURCE */ /* . ----------------------------------------------------------------- */ SS: Procedure /*@ Show Source */ arg ssbeg ssend . if ssend = "" then ssend = 10 if \datatype(ssbeg,"W") | \datatype(ssend,"W") then return ssend = ssbeg + ssend do ssii = ssbeg to ssend ; say Strip(sourceline(ssii),'T') ; end return /*@ SS */ /* . ----------------------------------------------------------------- */ SWITCH: Procedure expose info /*@ */ arg kw sw_val = Wordpos(kw,info) > 0 /* exists = 1; not found = 0 */ if sw_val then /* exists */ info = Delword(info,Wordpos(kw,info),1) /* remove it */ return sw_val /*@ SWITCH */ /* . ----------------------------------------------------------------- */ SYNTAX: /*@ */ errormsg = exec_name "encountered REXX error" rc "in line" sigl":", errortext(rc) say errormsg zsigl = sigl signal SHOW_SOURCE /*@ SYNTAX */ /* Can call TRAPOUT. . ----------------------------------------------------------------- */ TOOLKIT_INIT: /*@ */ address TSO info = Strip( opts,'T','5d'x ) /* clip trailing paren */ parse source sys_id how_invokt exec_name DD_nm DS_nm, as_invokt cmd_env addr_spc usr_tokn parse value "" with tv helpmsg . parse value 0 "ISR00000 YES" "Error-Press PF1" with, sw. zerrhm zerralrm zerrsm if SWITCH("TRAPOUT") then do "TRAPOUT" exec_name parms "(( TRACE R" info exit end /* trapout */ sw.0nested = sysvar("SYSNEST") = "YES" sw.0batch = sysvar("SYSENV") = "BACK" sw.0inispf = sysvar("SYSISPF") = "ACTIVE" parse value KEYWD("TRACE") "N" with tv . if Word(parms,1) = "?" then call HELP /* I won't be back */ "QSTACK" ; tk_init_stacks = rc /* How many stacks? */ parse value SWITCH("BRANCH") SWITCH("MONITOR") SWITCH("NOUPDT") with, branch monitor noupdt . parse value mvsvar("SYSNAME") sysvar("SYSNODE") with, #tk_cpu node . tk_globalvars = "exec_name tv helpmsg sw. zerrhm zerralrm ", "zerrsm zerrlm tk_init_stacks branch monitor ", "noupdt" call LOCAL_PREINIT /* for more opts -*/ return /*@ TOOLKIT_INIT */ /* ISPF assets follow immediately ))) PLIB TANDEM Show two matching FAMTREE entries )ATTR % TYPE( TEXT ) INTENS( HIGH ) SKIP( ON ) + TYPE( TEXT ) INTENS( LOW ) SKIP( ON ) _ TYPE( INPUT ) INTENS( LOW ) CAPS( ON ) @ TYPE( TEXT ) INTENS( HIGH ) COLOR( YELLOW ) ! TYPE( INPUT ) INTENS( HIGH ) CAPS( OFF ) # TYPE( OUTPUT ) INTENS( HIGH ) )BODY EXPAND(||) @|-|% Record Contents for Comparison @|-| %COMMAND ===>_ZCMD %SCROLL ===>_ZAMT+ % Sequence#f1seq +(#fam1 +) + + Name!f1name + Email:!f1email + Birth Date!f1birth + ccyymmdd + Death Date!f1death + ccyymmdd + Spouse!f1spouse +B:!f1spbd +D:!f1spdd + Email:!f1speml +Married Date!f1weddt + ccyymmdd + Text!f1text + Relates#f1rels + % Sequence#f2seq +(#fam2 +) + + Name!f2name + Email:!f2email + Birth Date!f2birth + ccyymmdd + Death Date!f2death + ccyymmdd + Spouse!f2spouse +B:!f2spbd +D:!f2spdd + Email:!f2speml +Married Date!f2weddt + ccyymmdd + Text!f2text + Relates#f2rels + )INIT .HELP = TANDEMH )PROC )END ))) PLIB TANDEMH HELP )ATTR % TYPE( TEXT ) INTENS( HIGH ) SKIP( ON ) + TYPE( TEXT ) INTENS( LOW ) SKIP( ON ) _ TYPE( INPUT ) INTENS( HIGH ) ! TYPE( OUTPUT ) INTENS( HIGH ) SKIP( ON ) @ TYPE( OUTPUT ) INTENS( LOW ) SKIP( ON ) )BODY EXPAND(||) %TUTORIAL |-| Update record contents for Sequence |-| TUTORIAL %Next Selection ===>_ZCMD + + Two entries are shown that an earlier process suggests are related. + Make any changes to either that seem fitting. + Primary command%FILLIN +will populate any blank fields for that family-entry from the other family-entry. This also causes an immediate table update. + Primary command%UPDATE +causes an immediate update of the specified family-entry. This is only needed for manual updates. + Primary command%LINK+causes an immediate update of relationship data (Relates) for the displayed entries without any other update action. + Any changes to either will cause an update to Relates. + )PROC &ZCONT = TANDEMH &ZUP = TANDEMH )END */