/* REXX gr */ /* ---------------------------------------------------------------- */ /* */ /* Display Member List of first parameter */ /* and accept commands */ /* */ /* ---------------------------------------------------------------- */ 'ISREDIT MACRO (MI) NOPROCESS' address"ISPEXEC""CONTROL ERRORS RETURN" if MI = ""then arg MI parse var MI datasetName if MI = "MI" ! MI="?"thendo call help exit(0) end if datasetName = '' thendo say'parameter missing at entry to REXX Panel' return1 end
y = "'"datasetName"' directory recall"
x = msg('off')
x = listdsi(y) if x > 4thendo say'function LISTDSI for dataset' datasetName, 'not successful, SYSREASON = ' sysreason return1 end if sysdsorg <> 'PO'thendo say'dataset' datasetName 'not PO' return1 end if sysmembers = 0thendo say'dataset' datasetName 'without members' return1 end
x = msg('on')
y = "'"datasetName"'" "ispexec lminit dataid(dsnID) dataset("y") " if rc > 8thencall errorExit if rc = 8thendo say zerrmsg zerrlm call errorExit end "ispexec lmopen dataid("dsnID") " if rc <> 0thencall errorExit
lmmrc = 0 dowhile lmmrc = 0 "ispexec lmmdisp dataid("dsnID") option(display) commands(ANY)"
lmmrc = rc if rc = 4thendo say'no matches for member pattern',
memberPrefix return1 end /*------------ Komando auswerten --------------*/ if rc = 0thendo ifindex(zlmember,' ') > 0then
zlmember = substr(zlmember,1,index(zlmember,' ')-1) if (zllcmd = 'e') ! (zllcmd = 'E') then address"ISPEXEC" edit "DATASET('"datasetName"("zlmember")')" elseif (zllcmd = 'b') ! (zllcmd = 'B'),
! (zllcmd = 's') ! (zllcmd = 'S') then address"ISPEXEC" browse "DATASET('"datasetName"("zlmember")')" elseif (zllcmd = 'v') ! (zllcmd = 'V') then address"ISPEXEC" view "DATASET('"datasetName"("zlmember")')" elseif (zllcmd = 'd') ! (zllcmd = 'D') then address tso "del ('"datasetName"("zlmember")')" else say"unknown command" end end "ispexec lmclose dataid("dsnID") " if rc <> 0thencall errorExit return0
/*==================================================================*/ /* Subroutine: errorExit */ /* Description: put error-message to screen */ /* terminates the exec */ /* Usage: call errorExit */ /*==================================================================*/
errorExit:
msgNumber = sigl say'Dataset in error RC='rc' sigl='sigl exit1
help: say' ' say'ISPF/PDF edit macro to show a member selection list for the ' say'dataset specified in parm1 ' say' ' say'parm 1: ' say' the dataset ' say' ' say' If you have questions about this command, ' say' contact Hamburg -4244. ' return
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-04)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.