HP P9000 Business Continuity Manager Reference Guide (T5253-96058, September 2011)

Table Of Contents
say "Value = " || DEMO_MSG.x.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)",
"DAD(PRIM) MSG(DEMO_MSG.) ROUTE(DEMORLST)";
/*
* 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
Command details 277