02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

584 Write Function Appendix 1<br />

Figure A1.8 Concatenation FRCB<br />

R1<br />

+0<br />

+4<br />

+8<br />

+12<br />

+16<br />

* +20<br />

Concatenation<br />

function<br />

(CONCFUNC):16<br />

Pointer to User Exit<br />

BAG Control Block<br />

(CONCEXIT)<br />

Next Data Set<br />

Block Size<br />

(CONBLKL)<br />

Next Data Set<br />

Record Size<br />

(CONCRECL)<br />

Next Data Set<br />

Record Format<br />

(CONCRECF)<br />

Pointer to User<br />

Maximum Data Size<br />

(CONCZLEN)<br />

* The user exit can update this field.<br />

UEBCB<br />

Fullword<br />

In this function you can modify the maximum data size <strong>for</strong> the next data set by<br />

changing the Pointer to User Maximum Data Size so that it points to a fullword that<br />

you initialize.<br />

Write Function<br />

<strong>SAS</strong> invokes the Write function during the execution of the PUT statement<br />

whenever a new record must be written to the file. The following figure illustrates the<br />

Write FRCB and its relationship to other control blocks:<br />

Figure A1.9 Write FRCB<br />

R1<br />

*<br />

*<br />

+0<br />

+4<br />

+8<br />

+12<br />

Write Function<br />

(WRITFUNC):14<br />

Pointer to User Exit<br />

BAG Control Block<br />

(WRITEXIT)<br />

Pointer to User<br />

Record Area Address<br />

(WRITRECA)<br />

Pointer to<br />

Record Size<br />

(WRITRECL)<br />

* The user exit can update this field.<br />

UEBCB<br />

Record<br />

Address<br />

Fullword<br />

Record<br />

When the Write function receives control, the WRITRECA field (or Pointer to User<br />

Record Area Address) points to a Record Address. The Record buffer is allocated by<br />

<strong>SAS</strong> and contains the record that was created by the PUT statement.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!