I believe you want: ISSUE MESSAGE (Issue a Message From a Server Script) Use this command with return code processing in a script to issue a message from a server script to determine where the problem is with a command in the script.
Syntax ISSUE MESSAGE message_severity message_text Parameters message_severity (Required) Specifies the severity of the message. The message severity indicators are: E Error. ANR1498E is displayed in the message text. I Information. ANR1496I is displayed in the message text. S Severe. ANR1499S is displayed in the message text. W Warning. ANR1497W is displayed in the message text message_text (Required) Specifies the description of the message. -----Original Message----- From: Coats, Jack [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 9:06 AM To: [EMAIL PROTECTED] Subject: Documenting a Script in TSM There is probably a simple answer... I am running a script from TSM on NT with several commands that do SQL Queries and TSM commands each morning. How can I do the equivalent of an 'Echo' or 'Type' command in the scripts to put a text 'header' of sorts out before each of the commands? Example: I do a 'RUN MORNING' from my web browser TSM command line. It executes the following commands: /* Morning Report */ /* */ /* First, Copy Pool Tapes to go off site */ query volume * access=readw,reado - status=full,filling stgpool=copypool /* */ /* Second, List TODAYs DataBase backup tape */ query volhist type=dbbackup begindate=today /* */ /* Third, List the volumes ready to come on-site */ query volume * access=offsite status=empty /* */ /* Fourth, List all the events in the last */ /* work day that should have been completed */ QUERY EVENT * * BEGINDATE=TODAY-1 - BEGINTIME=08:00 ENDDATE=TODAY ENDTIME=08:00 - EXCEPTIONSONLY=NO FORMAT=STANDARD /* */ /* Fifth, Query the journal logs and the */ /* database for their size, 80% is needs */ /* some attention */ query log query db /* Library Volumes */ query libv /* All Volumes in Catalog */ query vol /* Space Usage - q occupancy */ query auditoccupancy /* Storage Group Status */ query stg And I just want to put what is in the comments out to the display along with the results of the commands. Suggestions?
