Download Print this page

Ykdemo05 - HP XP P9500 Reference Manual

Hp p9000 for business continuity manager software reference guide
Hide thumbs Also See for XP P9500:

Advertisement

say "Value
end;
return 0;

YKDEMO05

/* REXX
/**********************************************************************/
/*
/* All Rights Reserved. Copyright (C) 2007, 2010, Hitachi, Ltd.
/*
/**********************************************************************/
/*
/* YKDEMO05 - A sample demonstration script that illustrates how to
/*
use the Business Continuity Manager's REXX CLI commands for
/*
obtaining various copy group information.
/*
/*
This sample script uses the following CLI commands.
/*
- YKLOAD
/*
- YKQUERY
/*
- YKSTATS
/*
/*
This sample script assumes the following settings.
/*
/*
1) The definition files are stored in the dataset with the
/*
prefix "BCM.DEMO".
/*
2) TC-Async copy group is used. The copy group ID is "MYTCA".
/*
3) The route list ID is "DEMORLST".
/*
4) The primary Device Address Domain ID is "PRIM".
/*
/**********************************************************************/
/* Sample script begins. */
say "#-- BEGIN YKDEMO05.";
address TSO "YKENV"
/*
* YKLOAD should be called before manipulating MYTCA to make definition
* information of MYTCA available on the REXX environment.
*/
call "YKLOAD" "STEM(DEMO_INFO.) PREFIX(BCM.DEMO) GROUP(MYTCA)",
/*
* Check the return code of YKLOAD to see if it is 0 or not.
*/
if result /= 0
then do
call printErrorMessage;
exit;
end;
else
nop;
/*
* Call YKQUERY to refresh the information in the Copy Group structure
* of MYTCA copy group before calling YKMAKE. You may use YKEWAIT with
* TIMEOUT(0) parameter instead, as demonstrated in YKDEMO01.
*/
address TSO "YKQUERY STEM(DEMO_INFO.) MSG(DEMO_MSG.)";
/*
* Check the return code to see if it is bigger than 8.
*/
if rc > 8
then do
= " || DEMO_MSG.x.Value;
"DAD(PRIM) MSG(DEMO_MSG.) ROUTE(DEMORLST)";
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Command details 277

Advertisement

loading

This manual is also suitable for:

P9000 for business continuity manager 6.6.1