![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/CONNECT User's Guide |
init:
station_c =
loadclass('sashelp.connect.station.class');
station_i = instance(station_c);
collection = 'acollection';
call send(station_i, '_open', collection, rc);
agent_c = loadclass('sashelp.connect.agent');
agent_i = instance(agent_c);
domain = 'tcp//mynode.xyz.com/domsvr';
call send(agent_i, '_setDomainInfo', domain,
collection, rc, "", station_i);
/* display Preview window so user can */
/* enter SAS statements to define */
/* to agent */
rc = preview('EDIT');
agentname = "reports";
description =
'Agent that runs thursday night report.';
/* location of where agent actually */
/* runs, which differs from domain name */
/* which specifies the DOMAIN server */
/* where the agent is defined */
runloc = 'tcp//mainnode.xyz.com/myserv';
/* valid userid and password for the */
/* system on which the agent actually */
/* runs (run location) */
security = 'userid.password';
/* notification queue name */
nqueue = "checkq";
/* set schedule list so that agent runs */
/* every thursday at 8:30 p.m. */
schedule = makelist();
rc = insertc(schedule, 20, -1, "RUN_HOUR");
rc = insertc(schedule, 30, -1, "RUN_MINUTE");
rc = insertc(schedule, 5, -1, "RUN_DOW");
call putlist(schedule, 'scheduled list' ,2);
call send(agent_i, '_defineAgent',
agentname, rc, description,
runloc, security, schedule,
nqueue, "COMPLETE", "RETAIN");
/* clear preview buffer */
rc = preview('clear');
return;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.