Enables you to add new attributes to a properties element.
● Initialization of the program must be performed inself_transaction
mode;stm_init_uad
withself_transaction
.
●
● Usestm_commit_transaction()
at the end of each transaction.
Input/Output This name must be uppercase, alpha-numeric, or empty (with a maximum length of 64). The value can be any text string, with a maximum length of 300.main(argc, argv)
char **argv;
int argc;
{
int status;
stm_id state_id;if (argc!=3)
{
printf ("Usage %s PROJECT workarea\n", argv[0]);exit (0);
}
if (!stm_init_uad(argv[1], argv[2], self_transaction,
&status))
{
printf ("can’t open workarea %s\n", argv[2]);
exit(1);
}
stm_start_transaction_rw ();
state_id = stm_r_st ("S1", &status);
stm_add_attribute (state_id, "FRED", "A Value",
&status);
stm_commit_transaction();
}