You are advised to use the first argument as a completion status code of the subroutine as illustrated by the following example.

PROIV Logic

LINK(SUB9,#stat , param1)
IF #stat = 0 THEN ...

Subroutine Code

sub9(char *stat, char *param1)
{

char fmt[7];
int retval = 0;

<<<<<  Your subroutine code.

wsprintf(fmt,"%%0%ud",*(stat-1));
wsprintf(stat,fmt,retval);
return 0

}

Comment on this topic

Topic ID: 750055

 
 
 

Table of Contents

Index

Glossary

-Search-

Back