Script - Command Line

girreis

ADSM.ORG Member
Joined
Feb 11, 2011
Messages
119
Reaction score
1
Points
0
Hi,

How to run a script with the TXT extension using the TSM command line, example: script.txt

Thank you for your attention,
Ramon
 
neerajkgupta,

Has failed, as follows:

tsm: PRRJ>run script.txt
ANR1455E RUN: Command script SCRIPT.TXT does not exist.
ANS8001I Return code 11.

Thanks,
Ramon
 
As far as I know, TSM does not or can not run scripts outside of TSM defined scripts.

If the contents are TSM commands, then you could define a new TSM script and basically copy and paste the contents of that *.txt script. Then if you happen to name the script script.txt, then run the script as neers mentioned.
 
Using the complete path did not work for me.
I still think TSM does not run scripts that are not defined by TSM.
 
Hi all,

You have to make the difference between scripts that must be defined and are in the database and macros that are command files that must reside locally on filesystem where dsmadmc is run (and can use a full path name).
See HELP DEFINE SCRIPT, HELP RUN & HELP MACRO
 
Macro file_name */ file of the local system/*
run script_name */script defined in TSM DB/*
And this is why I love adsm.org... thanks for the 'new to me' command. Using 'macro' <full path & file name> worked in my test.
 
Back
Top