Operating System - OpenVMS
1830165 Members
5930 Online
109999 Solutions
New Discussion

Re: multi line command to ABC backup client from a DCL script

 
SOLVED
Go to solution
Ray Kosovich
Occasional Contributor

multi line command to ABC backup client from a DCL script

We have a single VMS system that we support and no full time VMS Administrator so excuse me if I am asking a dumb question.
We use ABC backup client interfacing to IBM’s TIVOLI storage Manager to control all the backups for the system. The DCL script was supplied by ABC and has been working OK for some time.

The script generates the required ABC commands and runs them from the ABC command line interface. However a recent change has introduced a bug where the script generates a command that is longer than 256 characters so we end up with the following error
%DCL-W-TKNOVF, command element is too long - shorten.

I've tried to break the command into 2 lines within the DCL script and am now generating something like this :

$ abc_command_line_1 -
$ command_line_2

Whilst this works perfectly when I manually run it from the OS prompt (where I get a _$ prompt after the first command line is entered and then enter the second line), if I run it within the script I get
%DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters.

It appears to me that either ABC or DCL is not recognizing the fact that the command is spread across 2 lines in the script.

Is there any trick I need to do to get this to happen and have ABC recognize the multi-line command ??

Thanks
2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: multi line command to ABC backup client from a DCL script

Don't put a "$" on the DCL continuation
line(s):

$ abc_command_line_1 -
command_line_2

You didn't type the (extra) "$"
interactively, right?

I normally indent a little:

$ abc_command_line_1 -
command_line_2

For examples, look at (almost) any of the
many .COM files in SYS$EXAMPLES:.
Ray Kosovich
Occasional Contributor

Re: multi line command to ABC backup client from a DCL script

Thanks for that, removing the $ did the trick.

I also had to tweak the ABC commands a bit, but at least I could get it to recognize the second line.

Cheers