APAR Identifier ...... OA36757 Last Changed ........ 11/09/02
STRIP FUNCTION TO STRIP OFF LEADING AND TRAILING BLANKS
FROM A VARIABLE VALUE
Symptom ...... NF NEWFUNCTION Status ........... CLOSED UR1
Severity ................... 3 Date Closed ......... 11/08/01
Component .......... 5697NV600 Duplicate of ........
Reported Release ......... 10B Fixed Release ............ 999
Component Name NETVIEW FOR Z/O Special Notice ATTENTION
Current Target Date ..11/08/15 Flags
SCP ................... NEW FUNCTION
Platform ............
Status Detail: SHIPMENT - Packaged solution is available for
shipment.
PE PTF List:
PTF List:
Release 10B : UA61616 available 11/08/16 (F108 )
Parent APAR: OA35722
Child APAR list:
ERROR DESCRIPTION:
New function, called STRIP, that would strip off leading and
trailing blanks from a variable value.
This function could only be specified in the CMD string in an
EXEC, and would specify the variable that would be stripped
of blanks.
LOCAL FIX:
PROBLEM SUMMARY:
****************************************************************
* USERS AFFECTED: All users ot Tivoli NetView for z/OS. *
****************************************************************
* PROBLEM DESCRIPTION: When a command is executed as a result *
* of an automation table EXEC statement, *
* if any variable values contain leading *
* or trailing blanks, the resulting *
* command may fail, for example, if a *
* blank signifies the end of the command *
* string. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
After NetView automation table processing constructs a command
from constant strings (in quotation marks) and variables defined
in the automation table (not in quotation marks), there is no
way to ensure that the resulting command does not contain
blanks. If a variable value contains blanks, and the resulting
command does not work properly because of those blanks, NetView
does not provide a way to strip off those blanks to allow the
command to work.
PROBLEM CONCLUSION:
TEMPORARY FIX:
COMMENTS:
A new function, called STRIP, is being provided in automation
table processing which can be specified in the command string in
an EXEC statement. When specified, the variable value, without
leading or trailing blanks or hex zeroes will be used instead of
the variable value as specified.
The Tivoli NetView for z/OS V6R1 Automation Guide (SC27-2846-00)
should be changed as follows:
In Chapter 15, The Automation Table, in the section named
Actions, in the description of the EXEC action, in the
description of 'cmdstring', the following should be added after
the first paragraph:
Because variable values could contain leading or trailing
blanks which could cause the command to fail, you can use the
STRIP function to strip off leading and trailing blanks or
hexadecimal zeroes.
Syntax: STRIP(varname)
where 'varname' is the variable name whose value without
leading and trailing blanks and hexadecimal zeroes is to
be inserted into the command.
MODULES/MACROS: DSIAMCMD DSIMACTN DSIMCT DSIMPRS
SRLS: SC27284600
RTN CODES:
CIRCUMVENTION:
Instead of invoking the necessary command string from the
EXEC statement in the automation table, specify a CLIST to be
executed, passing the appropriate parameters, which will itself
use the REXX STRIP() function and execute the desired command.
MESSAGE TO SUBMITTER:
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Jeremy Nicoll
Sent: Monday, November 30, 2020 9:15 AM
To: [email protected]
Subject: Re: Auto Reply on SDSF Console
On Mon, 30 Nov 2020, at 14:00, Barkow, Eileen wrote:
> Sorry about that. I see that STRIP is available in NETVIEW REXX now.
> it was not a few releases ago when I tried to use it.
I have a handful of copies of old netview execs here. I'm looking now at one I
wrote in 1996 and it uses strip().
--
Jeremy Nicoll - my opinions are my own.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
________________________________
This e-mail, including any attachments, may be confidential, privileged or
otherwise legally protected. It is intended only for the addressee. If you
received this e-mail in error or from someone who was not authorized to send it
to you, do not disseminate, copy or otherwise use this e-mail or its
attachments. Please notify the sender immediately by reply e-mail and delete
the e-mail from your system.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN