Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
The command "set noverify" I have at the beginning of a script outputs to the target file along with the intended output when it is called from another script. But, when I run the script itself as @CURR_EPOCH_TIME.COM
it doesn't do it. The code for calling the script is:
$ @CURR_EPOCH_TIME.COM/output = TARGET.FILE
But, when I TYPE the target file I get:
$ type TARGET.FILE
$ set noverify
1212716451But, when I run the script manually I get:
$ @CURR_EPOCH_TIME.COM
1212716435Set Noverify is not there.
Can anyone explain why this happens? I don't want "set noverify" in the target file.
I hope I'm being clear.
Thanks alot.
MikeMichael Ledesma
System Administrator
Petro Heating Oil Svc's

Hi Michael,
I simulated your procedure to try to reproduce your situation. Whether or not the "set noverify" is shown in the target file or at the terminal is dependent on whether verify is already on or off before you run the procedure.
Example:
$ ty CURR_EPOCH_TIME.COM
$ set noverify
$ run calc_epoch.exe
$ exit$ @CURR_EPOCH_TIME.COM/output=TARGET.FILE
$ type TARGET.FILE
1212716435
$ set verify
$ @CURR_EPOCH_TIME.COM/output=TARGET.FILE
$ type TARGET.FILE
$ set noverify
1212716435
$ set noverify
$ @CURR_EPOCH_TIME.COM/output=TARGET.FILE
$ type TARGET.FILE
1212716435
$To get a target file with only the returned numeric value, I would change standard output inside the DCL script for only that command.
For Example:
$ type CURR_EPOCH_TIME.COM
$ assign/user_mode target.file sys$output
$ run calc_epoch.exe
$ exit$ @CURR_EPOCH_TIME.COM
$ type target.file
1212716435Cheers!
Keith Cayemberg

There is one trick to silently switch off verification without displaying the SET NOVERIFY command in case it was enabled:
Start the file with a comment line like this:
$! 'f$verify(0)'
exploiting the fact that symbol substitution takes place also in DCL comment lines.But in Your particular case Keith is right, the output file should be kept separate from DCL output.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |