John22439
ADSM.ORG Member
Hi all,
I am splitting off my TSM server into two entities, and I would like to find a simple way to copy over my scripts from the old server to the new.
The old server is on MVS (5.4.4.0) and we are going with the latest and greatest MVS version (which also appears to be the last) of 5.5.x.x
Is there an easier way to copy the scripts over - other than manually typing each and every one? (I have several hundred lines of code)
Here is what I've tried...
I created a windows bat file that uses the dsmadmc and runs great until I have to use aliases... see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO off
echo *
echo Creating Scripts
echo *
echo Please stand by...
echo *
dsmadmc -id=admin -password=xxxxxx "DEFINE SCRIPT TEST_CREATE_2 DESCRIPTION='Display all clientnodes per platform'"
dsmadmc -id=admin -password=xxxxxx "UPDATE SCRIPT TEST_CREATE_2 'select platform_name,count(*) from nodes group by platform_name'"
:END
PAUSE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This works fine, but if I add an alias, it drops the quotes and the script fails...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO off
echo *
echo Creating Scripts
echo *
echo Please stand by...
echo *
dsmadmc -id=admin -password=xxxxxx "DEFINE SCRIPT TEST_CREATE_2 DESCRIPTION='Display all clientnodes per platform'"
dsmadmc -id=admin -password=xxxxxx "UPDATE SCRIPT TEST_CREATE_2 'select platform_name,count(*) as "Number of nodes" from nodes group by platform_name'"
:END
PAUSE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I've tried single quotes and double quotes... perhaps there is a much easier way?
Cheers,
j
I am splitting off my TSM server into two entities, and I would like to find a simple way to copy over my scripts from the old server to the new.
The old server is on MVS (5.4.4.0) and we are going with the latest and greatest MVS version (which also appears to be the last) of 5.5.x.x
Is there an easier way to copy the scripts over - other than manually typing each and every one? (I have several hundred lines of code)
Here is what I've tried...
I created a windows bat file that uses the dsmadmc and runs great until I have to use aliases... see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO off
echo *
echo Creating Scripts
echo *
echo Please stand by...
echo *
dsmadmc -id=admin -password=xxxxxx "DEFINE SCRIPT TEST_CREATE_2 DESCRIPTION='Display all clientnodes per platform'"
dsmadmc -id=admin -password=xxxxxx "UPDATE SCRIPT TEST_CREATE_2 'select platform_name,count(*) from nodes group by platform_name'"
:END
PAUSE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This works fine, but if I add an alias, it drops the quotes and the script fails...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO off
echo *
echo Creating Scripts
echo *
echo Please stand by...
echo *
dsmadmc -id=admin -password=xxxxxx "DEFINE SCRIPT TEST_CREATE_2 DESCRIPTION='Display all clientnodes per platform'"
dsmadmc -id=admin -password=xxxxxx "UPDATE SCRIPT TEST_CREATE_2 'select platform_name,count(*) as "Number of nodes" from nodes group by platform_name'"
:END
PAUSE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I've tried single quotes and double quotes... perhaps there is a much easier way?
Cheers,
j