How do OPTVALs work?
OPTVAL allows you to retrieve the value of a user-defined option from the script command. Only CMS allows user-defined options. The coding could look like: .gs optval OS .if &E'&OS eq 0 .mg /I/No Operating System ...VM is Default/ .th .se OS = VM .th .go vminfo .if &OS eq VM .go vminfo .if &OS eq MVS .go mvsinfo .if &OS eq DOS1 .go dos1info .if &OS eq DOS2 .go dos2info Your SCRIPT command would need the following user-defined options: @OS(VM) or @OS(MVS) or @OS(DOS1) or @OS(DOS2)
Last updated: 93/08/04 14:08:05