/* REXX TOOLHELP Driver for all my tools. Shows which EXECs have usable HELP sections. . - Read #INDEX, save only 'exec' and 'macro' entries . - For each member, examine text for usable HELP . - If HELP, add to table with #INDEX description . - Show table, allow user to select entry for HELP Use '(routine name) ?' for HELP-text. |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| | | | WARNING: EMBEDDED COMPONENTS. | | See text following TOOLKIT_INIT | | | |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| Written by Frank Clarke rexxhead@yahoo.com 20230720 Impact Analysis . SYSEXEC DFLTTLIB . SYSEXEC QHELP . SYSEXEC TRAPOUT Modification History 20230803 fxc use hhmm for log file name; 20230908 fxc set log lrecl to 255; 20231024 fxc better HELP; 20231027 fxc report EXECs dropped for missing HELP section; 20231102 fxc better diagnostic msgs; 20231116 fxc add HELP prompt on panel; 20240305 fxc align panel names; 20240308 fxc chg dollar-sign to @ everywhere; 20240415 fxc DUMP_QUEUE quiet; */ arg argline address TSO /* REXXSKEL ver.20230514 */ 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 /* -*/ if sw.0Reload then do call C_RD_INDEX /* -*/ call E_FIND_HELP /* -*/ end call T_TBL_OPS /* -*/ if sw.0Log then, call ZB_SAVELOG /* -*/ if \sw.0nested then call DUMP_QUEUE 'quiet' /* -*/ exit /*@ TOOLHELP */ /* Initialiation . ----------------------------------------------------------------- */ A_INIT: /*@ */ if branch then call BRANCH address TSO xef = 'EF'x parse value "" with, type. desc. mbrlist rejects dropped call AK_KEYWDS /* -*/ call AL_SETUP_LOG /* -*/ if Left( inds,1 ) = "'" then, inds = Strip( inds,,"'" ) /* unquoted */ else, inds = Userid()"."inds /* fully-qualified */ #index = inds"(#INDEX)" dsmsg = Sysdsn( "'"#index"'" ) if dsmsg <> "OK" then do helpmsg = #index" : " dsmsg call HELP /* ...and don't come back -*/ end return /*@ A_INIT */ /* Parse parms . ----------------------------------------------------------------- */ AK_KEYWDS: /*@ */ if branch then call BRANCH address TSO parse value KEYWD( "INDS" ) "FB80.SYSEXEC" with , inds . return /*@ AK_KEYWDS */ /* Create logfile . ----------------------------------------------------------------- */ AL_SETUP_LOG: /*@ */ if branch then call BRANCH address TSO msglim = sysvar( "syswterm" ) - 12 parse value "0 0 0 0 0" with, log# log. . parse value Date("S") Time("S") Time("N") with, yyyymmdd sssss hhmmss . hhmmss = Space( Translate( hhmmss,' ',':' ) ,0 ) parse var yyyymmdd 4 yrdigit 5 mm 7 dd /* 9 12 14 maybe */ if Pos(yrdigit,"13579") > 0 then mm = mm + 12 /* mm=24 */ logtag = Substr("ABCDEFGHIJKLMNOPQRSTUVWX",mm,1) /* logtag=X */ subid = logtag""dd""Left( hhmmss,4 ) /* X141743 ? */ vb4k.0 = "NEW CATALOG UNIT(SYSDA) SPACE(1 5) TRACKS", "RECFM( V B ) LRECL( 255 ) BLKSIZE( 0 )" logdsn = "@LOG."exec_name"."subid".LIST" logpref = "("BRANCH( "ID" )")" call ZL_LOGMSG( logpref exec_name , "started by" Userid() yyyymmdd hhmmss ) call ZL_LOGMSG( logpref "Arg:" argline ) return /*@ AL_SETUP_LOG */ /* Read #INDEX member, saving only 'exec' and 'macro' lines . ----------------------------------------------------------------- */ C_RD_INDEX: /*@ */ if branch then call BRANCH address TSO "NEWSTACK" "ALLOC FI( @IDX ) DA( '"#INDEX"' ) SHR REU" "EXECIO * DISKR @IDX ( FINIS" "FREE FI( @IDX )" do queued() parse pull token . if Left( token,1 ) = "=" then leave end /* queued */ /* The header lines have been bypassed */ do queued() parse pull mbr type desc if mbr = "" then iterate upper mbr type if WordPos( type,"EXEC MACRO" ) = 0 then do rejects = rejects mbr /* not pertinent */ iterate end /* not EXEC or MACRO */ else do type.mbr = type desc.mbr = Strip( desc ) mbrlist = mbrlist mbr end /* only EXEC and MACRO */ end /* queued */ "DELSTACK" mbrlist = Space( mbrlist,1 ) rejects = Space( rejects,1 ) logpref = "("BRANCH( "ID" )")" call ZL_LOGMSG( logpref "Accepted: ("Words(mbrlist)")" mbrlist ) call ZL_LOGMSG( logpref "Rejected: ("Words(rejects)")" rejects ) return /*@ C_RD_INDEX */ /* Check each member for usable HELP . ----------------------------------------------------------------- */ E_FIND_HELP: /*@ */ if branch then call BRANCH address ISPEXEC e_tv = trace() /* what setting at entry ? */ w1 = '' do Words( mbrlist ) /* each member */ rc = Trace("O") parse value mbrlist w1 with w1 mbrlist rc = trace( e_tv ) editnm = "'"inds"("w1")'" /* construct valid name */ "VIEW DATASET(" editnm ") MACRO( QHELP )" pull vrc (xef) vstat . if vrc = 8 then do /* don't process */ if type.w1 = 'EXEC' then, dropped = dropped w1 w1 = '' end /* */ end /* mbrlist */ mbrlist = Space( mbrlist w1,1 ) /* restore */ dropped = Space( dropped,1 ) /* squeeze */ logpref = "("BRANCH( "ID" )")" call ZL_LOGMSG( logpref , "Dropped by QHELP (EXECs): ("Words(dropped)")" dropped ) return /*@ E_FIND_HELP */ /* has been trimmed to only those members with valid HELP segments. Load table, display it for selection(s), and purge it at end. Table definition: KEYS( XXMBR ) NAMES( XXDESC XXTYPE ) . ----------------------------------------------------------------- */ T_TBL_OPS: /*@ */ if branch then call BRANCH address ISPEXEC call TA_LOAD /* -*/ call TD_DISPLAY /* -*/ call TZ_DROP /* -*/ return /*@ T_TBL_OPS */ /* Build table. For each usable member, add a line. . ----------------------------------------------------------------- */ TA_LOAD: /*@ */ if branch then call BRANCH address ISPEXEC @tn@ = "XXHELP" if sw.0Reload then call TAP_PURGE /* -*/ logpref = "("BRANCH( "ID" )")" cmd = "LIBDEF ISPTLIB DATASET ID("isptlib") STACK"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) cmd = "TBSTATS" @tn@ "STATUS1(s1) STATUS2(s2)"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) if s1 > 1 then do cmd = "TBCREATE" @tn@ "KEYS( XXMBR ) NAMES( XXDESC XXTYPE )", "WRITE REPLACE" (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) end; else, if s2 = 1 then do /* table is not open */ cmd = "TBOPEN " @tn@ "WRITE"; (cmd) orc = rc call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) if orc > 4 then do sw.0error_found = 1 zerrsm = "Table did not OPEN" zerrlm = "Table" @tn@ "cannot be opened due to prior", "enqueues." "SETMSG MSG(ISRZ002)" end end else "TBTOP" @tn@ cmd = "LIBDEF ISPTLIB"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) if sw.0Reload = 0 then return xxmbr = '' do Words( mbrlist ) /* each member */ rc = Trace("O") parse value mbrlist xxmbr with xxmbr mbrlist rc = trace( e_tv ) xxdesc = desc.xxmbr xxtype = type.xxmbr cmd = "TBADD" @tn@; (cmd) call ZL_LOGMSG( logpref "Executed" cmd, Left( xxmbr,8 ) Left( xxtype,5 ) xxdesc "RC="rc ) end /* mbrlist */ mbrlist = Space( mbrlist xxmbr,1 ) /* restore */ return /*@ TA_LOAD */ /* Erase the existing table so it can be recreated. . ----------------------------------------------------------------- */ TAP_PURGE: /*@ */ if branch then call BRANCH address ISPEXEC logpref = "("BRANCH( "ID" )")" cmd = "LIBDEF ISPTABL DATASET ID("isptabl") STACK"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) cmd = "TBERASE" @tn@; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) cmd = "LIBDEF ISPTABL"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) return /*@ TAP_PURGE */ /* Show table and process selections . ----------------------------------------------------------------- */ TD_DISPLAY: /*@ */ if branch then call BRANCH address ISPEXEC td_tv = trace() /* what setting at entry ? */ "TBTOP" @tn@ sel = "" call DEIMBED /* -*/ rc = Trace("O") 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 rc = trace( td_tv ) do forever "TBDISPL" @tn@ "PANEL( TOOLHLP )" if rc > 4 then leave if zcmd <> "" then do parse var zcmd verb text if Pos( verb,"lL" ) > 0 then do "TBVCLEAR" @tn@ /* zap all variables */ @z@ = Value("XXMBR",text"*") /* load search value */ "TBSCAN" @tn@ "ARGLIST( XXMBR )", /* set ROWFND if good */ "CONDLIST( GE ) ROWID(ROWFND) " "TBSKIP" @tn@ "ROW("rowfnd") NOREAD" /* point to LASTFND */ end /* Locate */ end /* zcmd */ do ztdsels "CONTROL DISPLAY SAVE" call TDH_SHOW_HELP /* -*/ "CONTROL DISPLAY RESTORE" if ztdsels > 1 then "TBDISPL" @tn@ end /* ztdsels */ sel = "" end /* forever */ rc = Trace("O") 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 /*@ TD_DISPLAY */ /* . ----------------------------------------------------------------- */ TDH_SHOW_HELP: /*@ */ if branch then call BRANCH address TSO "%"xxmbr "?" "NEWSTACK"; pull; "CLEAR"; "DELSTACK" return /*@ TDH_SHOW_HELP */ /* Flush table . ----------------------------------------------------------------- */ TZ_DROP: /*@ */ if branch then call BRANCH address ISPEXEC logpref = "("BRANCH( "ID" )")" cmd = "LIBDEF ISPTABL DATASET ID("isptabl") STACK"; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) if noupdt then do cmd = "TBEND " @tn@; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) end else do cmd = "TBCLOSE" @tn@ ; (cmd) call ZL_LOGMSG( logpref "Executed" cmd "RC="rc ) end "LIBDEF ISPTABL" return /*@ TZ_DROP */ /* . ----------------------------------------------------------------- */ LOCAL_PREINIT: /*@ customize opts */ address TSO sw.0Reload = SWITCH( "RELOAD" ) sw.0Log = SWITCH( "LOG" ) default = DFLTTLIB( "XXHELP" ) parse value KEYWD( "ISPTLIB" ) "'"default"'" with, isptlib . parse value KEYWD( "ISPTABL" ) isptlib with, isptabl . parse value KEYWD( "USETBL" ) "XXHELP" with, @tn@ . 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 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 sourceline(currln) <> "/*" text = sourceline(currln) /* save with a short name ! */ if Left(text,3) = ")))" 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 */ /* . ----------------------------------------------------------------- */ ZB_SAVELOG: /*@ */ if branch then call BRANCH address TSO if Symbol("LOG#") = "LIT" then return /* not yet set */ "ALLOC FI(@LOG) DA("logdsn") REU" vb4k.0 "EXECIO" log# "DISKW @LOG (STEM LOG. FINIS" "FREE FI(@LOG)" return /*@ ZB_SAVELOG */ /* . ----------------------------------------------------------------- */ ZL_LOGMSG: Procedure expose, /*@ */ (tk_globalvars) log. log# msglim rc = Trace("O") address TSO parse arg msgtext /* for making the msgline always reasonably short: */ do while Length(msgtext) > msglim pt = LastPos(" ",msgtext,msglim) slug = Left(msgtext,pt) if monitor then say, slug parse value log#+1 slug with, zz log.zz 1 log# . msgtext = " "Substr(msgtext,pt) end /* while msglim */ parse value log#+1 msgtext with, zz log.zz 1 log# . if monitor then say, msgtext return /*@ ZL_LOGMSG */ /* . ----------------------------------------------------------------- */ HELP: /*@ */ address TSO;"CLEAR" if helpmsg <> "" then say helpmsg ex_nam = Left(exec_name,8) /* predictable size */ say " " say " "ex_nam" provides a scrollable list of routines within the input " say " dataset that have a canonical REXXSKEL-based HELP segment," say " and allows display of that HELP-text. The dataset must " say " have a #INDEX member as generated by MEMIDX. " say " " say " Syntax: "ex_nam" INDS inputdsn (Defaults)" say " (( LOG " say " RELOAD " say " ISPTLIB tblin (Defaults)" say " ISPTABL tblout (Defaults)" say " USETBL tblnm (Defaults)" say " " say " inputdsn names the EXEC library to be scanned for HELP-text. " say " " say " LOG (switch in OPTS) requests the log file be retained " say " at process-end. " say " " say " RELOAD (switch in OPTS) requests the table be completely " say " recreated from scratch. " say " " "NEWSTACK"; pull ; "CLEAR" ; "DELSTACK" say " " say " tblin names the INPUT table library on which can " say " be found. If not specified, DFLTTLIB will be called" say " to supply a value. " say " " say " tblout names the OUTPUT table library to receive the " say " RELOADed . If not specified, the current " say " value of will be used. " say " " say " tblnm names the table containing the list of routines with" say " usable HELP-text. If not specified, it defaults to " say " 'XXHELP'. If RELOAD, the existing table will be " say " purged and recreated. " say " " "NEWSTACK"; pull ; "CLEAR" ; "DELSTACK" say " Debugging tools provided include: " say " " say " MONITOR: displays key information throughout processing. " 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" (( MONITOR TRACE ?R " if sw.0inispf 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",")") /* 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" 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 . parse value KEYWD("TRACE") "N" with tv . 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 TOOLHLP Primary display )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(||) WIDTH(&ZSCREENW) %|-| Tools in!inds +|-| %Command ===>_ZCMD %Scroll ===>_ZAMT+ +V+Member name Type Description +- -------- ----- ----------------------------------------- %PF1 for HELP )MODEL _z!xxmbr @xxtype @xxdesc )INIT .ZVARS = '(SEL)' .HELP = TOOLHLPH )REINIT )PROC IF (.PFKEY = 'PF05') &PFKEY = 'F5' .RESP = END )END ))) PLIB TOOLHLPH HELP for Primary display )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(||) WIDTH(&ZSCREENW) %TUTORIAL |-| Tools in!inds |-| TUTORIAL %Next Selection ===>_ZCMD + + Select any member name to see the HELP-text associated with that command. + Position the display to a desired member with command%L+. The display will be positioned to the specified member or the next available member. %===> l flo )PROC &ZUP = TOOLHLPH &ZCONT = TOOLHLPH )END */