tsm script continuation character
Hello, I have the script below setup to run on Sunday. I understand the dash (-) is a continuation character that is placed at the end of the line, But I saw in the server log it did not accept the dash, Should there be a space on the next line before the continuation of a script? Administrator XXissued command: BACKUP DB devclass=BKP type=full scratch=yes -= wait=yes (SESSION: ANR2020E BACKUP DB: Invalid parameter - -. (SESSION: 988) This is the way it looks way when I click on the script serial backup db devclass=bkp type=full scratch=yes - wait=yes serial BA STG backuppool remotepool maxpr=2 wait=yes serial migrate stgpool backuppool lowmig=0 wait=yes serial Ba STG LTOpool REMOTEpool maxpr=2 wait=yes This is the way it looks when I update date the the script serial backup db devclass=bkp type=full scratch=yes - wait=yes serial BA STG backuppool remotepool maxpr=2 wait=yes serial migrate stgpool backuppool lowmig=0 wait=yes serial Ba STG LTOpool REMOTEpool maxpr=2 wait=yes Thanks in Advance!
Re: tsm script continuation character
On Mon, 1 May 2006 11:31:10 -0400, Timothy Hughes [EMAIL PROTECTED] said: I have the script below setup to run on Sunday. I understand the dash (-) is a continuation character that is placed at the end of the line, But I saw in the server log it did not accept the dash, Should there be a space on the next line before the continuation of a script? Administrator XXissued command: BACKUP DB devclass=BKP type=full scratch=yes -= wait=yes (SESSION: ANR2020E BACKUP DB: Invalid parameter - -. (SESSION: 988) As a 'continuation character', it needs to come at the end of a line. The way to think about it is that the byte sequence -[newline] is magically removed from the script stream. Therefore a '-' other than before a newline is a syntax error. Thanks in Advance! You're welcome, a posteriori. - Allen S. Rout
Re: tsm script continuation character
Richard, Allen Thanks, I retyped that line a couple of times and I finally think it's correct. I did a run script preview and it showed the script to run as the following so I think it's correct now. RUN: Executing command script SUN_TSM_TASKS. Line 1 : serial. Line 5 : backup db devclass=bkp type=full scratch=yes wait=yes. Line 15 : serial. Line 20 : BA STG backuppool remotepool maxpr=2 wait=yes. Line 25 : serial. Line 30 : migrate stgpool backuppool lowmig=0 wait=yes. Line 35 : serial. Line 40 : Ba STG LTOpool remotepool maxpr=2 wait=yes. SUN_TSM_TASKS completed successfully (PREVIEW mode). Richard Sims wrote: Tim - Perhaps there's an inadvertent space after the hyphen? Richard