|
SWSPARM FunctionRelated Topics
You use the SWSPARM function of Shadow/REXX to set or display the values of Shadow OS/390 Web Server product parameters.
SWSPARM SyntaxThe SWSPARM function has this format:
The first two arguments are required parameters. Other arguments are optional.
Note that the 'INFO' and 'NAMES' parameters must be coded on the function call as parameters 3 and 4, respectively. Use commas to indicate any omitted arguments which precede these two values.
Return ValuesFor all Show functions, SWSPARM returns the results on the REXX external data queue. The external data queue is not used for Set function requests. You can retrieve the result lines from the external data queue using code such as: DO WHILE QUEUED() > 0 PARSE PULL QLINE ....perform some process against each line END In addition, the SWSPARM function always returns one of these codes:
ExamplesYou can see this function code in action by referring to the supplied sample PARMS Web Transaction. Example 1To display the address of a module, invoke the SWSPARM function as follows: RetCode = SWSPARM("SHOW","OPWWWWPR") Say "SWSPARM() return code is:" RetCode Do While Queued() 0 Pull Data Say Data End In response, the following information is displayed: SWSPARM() return code is: 0 ADDRESS OF MODULE OPWWWWPR X'06E1B000' Example 2To display the current value of an individual parameter: RetCode = SWSPARM("SHOW","TRACEHTML") Say "SWSPARM() return code is:" RetCode Do While Queued() 0 Pull Data Say Data End In response, the following information is displayed: SWSPARM() return code is: 0 WEB TRANSACTION OUTPUT TRACE DEFAULT NO Example 3To display the current value of an individual parameter, along with additional information: RetCode = SWSPARM("SHOW","TRACEHTML","INFO,"NAMES") Say "SWSPARM() return code is:" RetCode Do While Queued() 0 Pull Data Say Data End In response, the following information is displayed: SWSPARM() return code is: 0 WEB TRANSACTION OUTPUT TRACE DEFAULT NO TRACEHTML Y PRODWWW FIELD FORMAT BD FIELD LENGTH 013 FIELD GROUP 016 FIELD SUFFIX * WEB TRANSACTION OUTPUT TRACE DEFAULT FLAG OFF NO WEB TRANSACTION OUTPUT TRACE DEFAULT FLAG ON YES Example 4To display the address of a module with information and name, invoke SWSPARM as follows: RetCode = SWSPARM("SHOW","OPWWWWPR","INFO","NAMES") do while QUEUED() > 0 pull data say data end In response, the following information is displayed: ADDRESS OF MODULE OPWWWWPR X'06E1B000' OPITQWFU N PRODMODULES FIELD FORMAT ND FIELD LENGTH 004 FIELD GROUP 015 FIELD SUFFIX * MODULE ORIGINAL ADDRESS X'06E1B000' MODULE FINAL ADDRESS X'06E1B000' MODULE VECTOR TABLE ENTRY ADDRESS X'06F20390' MODULE SIZE 14160 BYTES MODULE PROTECT KEY CODE (2) MODULE VERSION 02.01.00 MODULE PROGRAMMER NAME AI38LRM MODULE ASSEMBLY DATE 04/08/96 MODULE ASSEMBLY TIME 10.04 MODULE IS ELIGIBLE FOR RELOAD YES |