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


Null-terminated parameter string

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

This parameter list is used most easily from C, passing a string to BPXWDYN defined with a #pragma for OS linkage, or extern "OS" for C++. This string should not contain any control characters. Note that the high bit is on in the parameter address word.

Figure 1. Example of a null-terminated parameter string
An example of a parameter list that is used in C programs.

C usage might include the following statements:

  typedef int EXTF();
  #pragma linkage(EXTF,OS)
  EXTF *bpxwdyn;
  int  rc;
  bpxwdyn=(EXTF *)fetch("BPXWDYN");
  rc=bpxwdyn("alloc fi(sysin) da(my.dataset) shr");

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014