/* REXX PDS2SEQ Convert a PDS to a sequential dataset either for printing or for edit/IEBUPDTE restore. |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| | | | WARNING: EMBEDDED COMPONENTS. | | See text following TOOLKIT_INIT | | | |**-***-***-***-***-***-***-***-***-***-***-***-***-***-***-***-**| Use '(routine name) ?' for HELP-text. Written by Frank Clarke in the Dark Ages Rebuilt by Frank Clarke, rexxhead@yahoo.com, 19991230 Impact Analysis . SYSEXEC DIRSTATS . SYSEXEC SYSUMON . SYSEXEC TRAPOUT Modification History 20210530 fxc make it work for PDS-Es; collect stats and annotate each member with stats where they exist; 20211012 fxc align stats 20230401 fxc SYSUMON only if not testing 20230724 fxc modernize logging; enable NOLOG; 20230726 fxc adjust HELP; 20230729 fxc clip long lines; 20230805 fxc belay using MEMBERS since we already collect member data via DIRSTATS; 20230806 fxc chg SYSPROC to SYSEXEC in Impact Analysis; 20230810 fxc set msglim based on screen width; 20230908 fxc set log lrecl to 255; 20230912 fxc enable TERSE; 20230913 fxc enable ALIAS; 20240305 fxc align panel names; 20240308 fxc chg dollar-sign to @ everywhere; 20240408 fxc err: no separator line if no stats; 20240415 fxc DUMP_QUEUE quiet; 20250515 fxc fix DEIMBED; 20250613 fxc add exec_name to logpref; 20250707 fxc SPACEOUT; cosmetics; replace DEIMBED; insert header w date/time; 20250925 fxc new BACKEND; chg setting of sw. to sw.0; 20251014 fxc adjusted logging parameters; 20251017 fxc upgrade for MSGPARMS; */ arg argline address TSO /* REXXSKEL ver.19991109 */ 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.0error_found then nop ; else, call B_TRANSFER /* -*/ if sw.0Nolog = 0 then , /* not set */ call ZB_SAVELOG /* -*/ if \sw.0nested then call DUMP_QUEUE 'quiet' /* -*/ exit /*@ PDS2SEQ */ /* . ----------------------------------------------------------------- */ A_INIT: /*@ */ if branch then call BRANCH address TSO parse var info dsname info call AA_SETUP_LOG /* -*/ logpref = exec_name "("Branch( "ID" )")" call ZL_LOGMSG( logpref, exec_name "started by" Userid() yyyymmdd hhmmss ) call ZL_LOGMSG( logpref "Arg:" argline ) call AK_KEYWDS /* -*/ if dsname = '' | , sw.0Menu then, call AV_VERIFY /* -*/ parse value "" with, mbrlist parse value "0 0 0 0 0 0 0 0" with, ct. . if dsname = "" then, helpmsg = helpmsg " Input DSName was not specified." if info <> "" then, helpmsg = helpmsg " Unrecognized parameters: >"info"<" if helpmsg <> "" Then call HELP /* ...and don't come back */ if Left( dsname,1 ) = "'" then, dsname = Strip( dsname,,"'" ) /* unquoted */ else, dsname = Userid()"."dsname /* fully-qualified */ return /*@ A_INIT */ /* . ----------------------------------------------------------------- */ AA_SETUP_LOG: /*@ */ if branch then call BRANCH address TSO msglim = SYSVAR( "SYSWTERM" ) - 12 msgparms = 'msglim log# log. ' 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 ? */ vblog.0 = "NEW CATALOG UNIT( SYSDA ) SPACE( 1 5 ) TRACKS", "RECFM( V B ) LRECL( 255 ) BLKSIZE( 0 )" logdsn = "@LOG."exec_name"."subid".LIST" if Sysdsn( logdsn ) = "OK" then, call ZL_LOGMSG( "-------------------" ) return /*@ AA_SETUP_LOG */ /* . ----------------------------------------------------------------- */ AK_KEYWDS: /*@ */ if branch then call BRANCH address TSO parse value " " with, stats. parse value KEYWD( "OUTPUT" ) "PDS2SEQ.DATA" with, outdsn . logpref = exec_name "("Branch( "ID" )")" call ZL_LOGMSG( logpref "OUTPUT set to" outdsn ) parse value KEYWD( "FOR" ) "EDIT" with, purpose . call ZL_LOGMSG( logpref "PURPOSE set to" purpose ) sw.0Terse = SWITCH( "TERSE" ) sw.0Nolog = SWITCH( "NOLOG" ) sw.0Alias = SWITCH( "ALIAS" ) sw.0DoStats = SWITCH( "STATS" ) if sw.0Terse then sw.0Stats = 1 /* forced */ call ZL_LOGMSG( logpref "STATS="sw.0DoStats " ", "TERSE="sw.0Terse " ", "ALIAS="sw.0Alias " ", "NOLOG="sw.0NoLog ) fmbr = KEYWD( "FROM" ) tmbr = KEYWD( "TO" ) fmbrl = Max( Length( fmbr ),1 ) tmbrl = Max( Length( tmbr ),1 ) return /*@ AK_KEYWDS */ /* . ----------------------------------------------------------------- */ AV_VERIFY: /*@ */ 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 dostats = sw.0DoStats alias = sw.0alias nolog = sw.0nolog terse = sw.0terse do forever "DISPLAY PANEL( PARMS )" if rc > 7 then leave /* PF3 ? */ end /* forever */ sw.0Terse = terse sw.0NoLog = nolog sw.0Alias = alias sw.0DoStats = dostats logpref = exec_name "("Branch( "ID" )")" call ZL_LOGMSG( logpref, "Input="dsname " Output="outdsn, "Purpose="purpose, "STATS="dostats " Terse="terse, "NOLOG="nolog " ALIAS="alias ) 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 /*@ AV_VERIFY */ /* All the tasks associated with making the 'input' output. . ----------------------------------------------------------------- */ B_TRANSFER: /*@ */ if branch then call BRANCH address TSO call BA_GET_MEMBERS /* -*/ if sw.0error_found then return call BB_ALLOC_OUTPUT /* -*/ if sw.0error_found then return logpref = exec_name "("Branch( "ID" )")" header = " BACKUP snapped" yyyymmdd hhmmss do Words( mbrlist ) /* every member */ parse var mbrlist mbr mbrlist /* isolate */ if CERTIFY( mbr ) then do /* transfer text -*/ call ZL_LOGMSG( logpref "Selected" mbr ) "NEWSTACK" call BC_EXECIO /* -*/ "DELSTACK" end /* CERTIFY */ else do /* rejected */ call ZL_LOGMSG( logpref "Rejected" mbr ) end end /* words( mbrlist ) */ "EXECIO 0 DISKW OUT (FINIS" /* close output */ "FREE FI( @IN OUT )" call ZL_LOGMSG( logpref ct.0Writes "lines written to output" ) return /*@ B_TRANSFER */ /* Obtain a list of members. . ----------------------------------------------------------------- */ BA_GET_MEMBERS: /*@ */ if branch then call BRANCH address TSO "NEWSTACK" "DIRSTATS" "'"dsname"'" "((" opts do queued() pull line parse var line mbr stats if Pos( "*ALIAS",stats ) > 0 then , /* it's an alias */ if sw.0Alias = 0 then iterate /* aliases not wanted */ mbrlist = mbrlist mbr stats = Strip( stats ) if stats = "STATS?" then stats = "" parse value stats with, stats.mbr end /* queued */ "DELSTACK" return /*@ BA_GET_MEMBERS */ /* Prepare the output dataset. . ----------------------------------------------------------------- */ BB_ALLOC_OUTPUT: /*@ */ if branch then call BRANCH address TSO ldrc = Listdsi( "'"dsname"' directory norecall" ) parse var sysrecfm form 2 if purpose = "PRINT" then, recfm = form "B A" else recfm = form "B" msgstat = Msg( "OFF" ) "FREE FI( OUT )" ; "DELETE" outdsn rc = Msg( msgstat ) /* restore */ if sysunits = "BLOCK" then sysunits = "TRACKS" if sysused = "N/A" then sysused = 3 "ALLOC FI( OUT ) DA( "outdsn" ) NEW CATALOG REU UNIT( SYSDA )", sysunits "SPACE( "sysused sysseconds" ) BLKSIZE( 0 )", "RECFM( "recfm" ) LRECL( "syslrecl" )" return /*@ BB_ALLOC_OUTPUT */ /* Get input data; modify as necessary; add header info; write. . ----------------------------------------------------------------- */ BC_EXECIO: /*@ */ if branch then call BRANCH address TSO if noupdt then return /* don't read or write */ "ALLOC FI( @IN ) DA( '"dsname"("mbr")' ) SHR REU" "EXECIO * DISKR @IN (FINIS" if purpose = "EDIT" then do slug = Left( "./ REPL NAME="mbr , 24 ) if sw.0Terse then , push slug stats.mbr /* IEBUPDTE header */ else do /* */ if sw.0DoStats then push "< "stats.mbr " >" push slug /* IEBUPDTE header */ end if header <> '' then do push header header = '' end /* header */ end /* EDIT */ else do /* PRINT */ do queued() parse pull line; queue " "line end push " "; push "1" dsname"("mbr")" end /* PRINT */ ct.0Writes = ct.0Writes + queued() /* total writes */ "EXECIO" queued() "DISKW OUT" /* not FINIS... */ return /*@ BC_EXECIO */ /* Is this member one we should process? . ----------------------------------------------------------------- */ CERTIFY: Procedure expose, /*@ */ (tk_globalvars) fmbr tmbr fmbrl tmbrl mbr if branch then call BRANCH address TSO valid = "1" if fmbr <> "" then, if fmbr > Left( mbr,fmbrl ) then valid = "0" if tmbr <> "" then, if tmbr < Left( mbr,tmbrl ) then valid = "0" return(valid) /*@ CERTIFY */ /* . ----------------------------------------------------------------- */ LOCAL_PREINIT: /*@ customize opts */ address TSO rc = Trace( 'O' ) ; rc = trace( tv ) sw.0Menu = SWITCH( "MENU" ) return /*@ LOCAL_PREINIT */ /* . ----------------------------------------------------------------- */ ZB_SAVELOG: /*@ */ if branch then call BRANCH address TSO if Symbol( "LOG#" ) = "LIT" then return /* not yet set */ "ALLOC FI( @LOG ) DA( "logdsn" ) REU" vblog.0 "EXECIO" log# "DISKW @LOG (STEM LOG. FINIS" "FREE FI( @LOG )" return /*@ ZB_SAVELOG */ /* . ----------------------------------------------------------------- */ ZL_LOGMSG: Procedure expose (tk_globalvars) (msgparms) /*@ */ 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 ) parse value log#+1 slug with, zz log.zz 1 log# . if monitor then say, log.zz msgtext = " "Substr( msgtext,pt ) end /* while msglim */ parse value log#+1 msgtext with, zz log.zz 1 log# . if monitor then say, log.zz return /*@ ZL_LOGMSG */ /* 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 ) DIR( 40 )", "TRACKS 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" Convert a PO dataset to PS for printing or batch update. " say " " say " Syntax: "ex_nam" dsname (Required)" say " OUTPUT outdsn (Defaults)" say " FOR purpose (Defaults)" say " FROM fr-mbr " say " TO to-mbr " say " NOLOG " say " STATS " say " TERSE " say " ALIAS " say " (( MENU " say " " say " dsname identifies the PO dataset which is to be converted. " say " " say " outdsn identifies the output dataset. If not specified, it" say " defaults to 'PDS2SEQ.DATA'. " say " " say " purpose may be either 'EDIT' or 'PRINT'. If not specified, " say " the default is 'EDIT'. " say " " say " more...... " "NEWSTACK"; pull; "CLEAR"; "DELSTACK" say " " say " fr-mbr if specified, identifies the first member to be " say " written to the output. 'fr-mbr' may be a partial " say " membername. If, for instance, 'fr-mbr' is 'BT' the " say " first member whose name begins with 'BT' will be " say " selected even if the membername is longer. Prior " say " members will not be selected. " say " " say " If 'fr-mbr' is not specified, selection begins with " say " the first member. " say " " say " to-mbr if specified, identifies the last member to be " say " written to the output. 'to-mbr' may be a partial " say " membername. If, for instance, 'to-mbr' is 'TB' the " say " last member whose name begins with 'TB' will be " say " selected even if the membername is longer. Later " say " members will not be selected. " say " " say " If 'to-mbr' is not specified, selection ends with " say " the last member. " "NEWSTACK"; pull; "CLEAR"; "DELSTACK" say " " say " NOLOG suppresses the production of the log file. " say " " say " STATS directs that member statistics, where they exist, " say " are to be captured and passed along as data. Unless" say " TERSE is specified, the stats are annotated as the " say " first line of each member. " say " " say " TERSE directs that member statistics are to be appended to" say " the IEBUPDTE header line. TERSE implies STATS. " say " " say " ALIAS causes ALIASes to be processed. By default, ALIASes" say " are skipped. " say " " say " MENU (switch in opts) causes a screen to be presented on " say " which all parameters may be entered. If no " say " parameters are provided on the initial call, that " say " screen will be presented regardless. " "NEWSTACK"; pull; "CLEAR"; "DELSTACK" say " " say " Debugging tools provided include: " say " " say " MONITOR displays key information throughout processing. " say " Displays most paragraph names upon entry. " 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 in" say " 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 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 ) /* 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( '5d40'x,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 */ /* ))) PLIB PARMS Get any missing parms )ATTR % TYPE( TEXT ) INTENS( HIGH ) SKIP( ON ) + TYPE( TEXT ) INTENS( LOW ) SKIP( ON ) @ TYPE( TEXT ) INTENS( HIGH ) COLOR( YELLOW ) _ TYPE( INPUT ) INTENS( LOW ) CAPS( ON ) ! TYPE( INPUT ) INTENS( HIGH ) CAPS( ON ) )BODY EXPAND(||) WIDTH(&ZSCREENW) @|-|% Specify needed Datapoints @|-| %COMMAND ===>_ZCMD %SCROLL ===>_ZAMT+ + PF1 for HELP + Input DSName ===>!dsname + + Output DSName ===>!outdsn + + + Purpose ===>!purpose+ (EDIT or PRINT) + From-member ===>!fmbr + (blank or generic) + To-member ===>!tmbr + (blank or generic) + + NOLOG ===>!z+ (0=off, 1=on) + DOSTATS ===>!z+ (0=off, 1=on) + TERSE ===>!z+ (0=off, 1=on) + ALIAS ===>!z+ (0=off, 1=on) + )INIT .ZVARS = '( NOLOG DOSTATS TERSE ALIAS )' .HELP = PARMSH )PROC )END ))) PLIB PARMSH Get any missing parms )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 |-| Specify needed Datapoints |-| TUTORIAL %Next Selection ===>_ZCMD + All known datapoints are shown. Add or change any datapoints that are incorrect. % +is required. %+will default if not specified. %+may be either 'EDIT' or 'PRINT'. % From-member+and%To-member+may be left blank, or may be generic names. If From-member is blank, selection begins at the first member. If To-member is blank, selection proceeds to the last member. If specified, they will limit the selection. % NOLOG, DOSTATS, TERSE,+and%ALIAS+are switches. Specify their values as%'0'+ (off) or%'1'+(on). )PROC &ZUP = PARMSH &ZCONT = PARMSH )END */