API Guide
2-602 API Functions 601355 Rev A
47 printf(“Enter High Mark Percentage
==> “ );
48 highmark = atoi(gets(input));
49 printf(“Enter Low Mark Percentage ==>
“ );
50 lowmark = atoi(gets(input));
51
52 if ( action == VSE_ARCHIVE_ACTION_MIG
)
53 {
54 /* these parameters only need to
be set if */
55 /* the archivemediaclass is being
set up to */
56 /* support migration. */
57 printf(“Enter Target Archive ==> “
);
58 gets( targetarchive );
59 printf(“Enter Migration Priority
== > “ );
60 migpri = atoi(gets(input));
61 VSCMD_CreateArchiveMediaClass_Set
Defaults (
62 VSID_TARGET_ARCHIVE_NAME,
targetarchive,
63 VSID_MIGRATION_PRIORITY,
migpri,
64 VSID_ENDFIELD );
65 }
66
67 printf(“How many prefered placements
(0 to skip): “);
68 count = atoi(gets(input));
69 if (count > 0)
70 {
71 comphandletable =
VS_Table_Create(VSE_COMPONENT_HAN
DLE, count);
72 if (comphandletable ==
(VST_TABLE_HANDLE) NULL)
73 {