z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example: calling BPXWDYN from C

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Allocate
This example allocates SYS1.MACLIB to SYSLIB and directs messages to standard error (stderr):
    typedef int EXTF();
   #pragma linkage(EXTF,OS_UPSTACK)
   
   int call_alloc()
   {
   EXTF *bpxwdyn=(EXTF *)fetch("BPXWDYN");
   return bpxwdyn("alloc fi(syslib) da(sys1.maclib) shr msg(2)")
   }

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014