02.07.2013 Views

Type III C lass A Program

Type III C lass A Program

Type III C lass A Program

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.

WRBUF Function<br />

Purpose:<br />

The WRBUF function writes one item of information into the<br />

file whose name is specified by the filename and filetype<br />

parameters. If the file does not exist when this function<br />

is first called. a new file is opened and assigned the given<br />

name and type. WRBUF automatically packs fixed-length items<br />

into an SOO byte buffer and writes this 800 byte buffer onto<br />

the disk when required.<br />

Calling Sequence:<br />

PLIST DC CLS-WRBUF e<br />

DC CLS- e filename<br />

DC CLS' , filetype<br />

DC CL2' , mode must be specified<br />

not *<br />

DC H' • item number (0 if next item)<br />

DC A( ) user's buffer address<br />

DC F' , number of bytes<br />

DC CL2' , fixed-variable flag, F or V<br />

DC H' e number of items to write<br />

(0 treated as 1 item)<br />

Note:<br />

The number of bytes in the user area divided by the number<br />

of items (that is, the same logical record length) must be<br />

constant for a fixed-length-record file.<br />

Error Codes:<br />

E(00001)<br />

E(00002)<br />

EC00003)<br />

E(OOOOIl)<br />

EtOOo-05)<br />

E(00006)<br />

E(OOOO?)<br />

E(OOOOS}<br />

EC000091<br />

E(OOOlO)<br />

E(OOOll)<br />

E(00012)<br />

E(00013)<br />

E(00014)<br />

E(00015)<br />

E(OOOl6)<br />

E(OOOl1)<br />

File name or file type not specified<br />

User memory address not in user area<br />

Disk error. The disk might be read-only.<br />

First character of mode illegal<br />

Second character of mode illegal<br />

Attempted to write item whose number<br />

exceeds 65533<br />

Attempt to skip over unwritten variablelength<br />

item<br />

Number of bytes not specified<br />

File already active for reading<br />

Maximum number of CMS files (3500) reached<br />

F-V flag not F or V<br />

Mode S (system) is illegal<br />

Disk already full<br />

Goes to KILLEXF instead of returning to<br />

caller<br />

Attempt to write a not yet formatted disk<br />

Length of this item not same as previous<br />

Characteristic (P-V Flag) not same as<br />

previous<br />

Variable length item greater than 65K bytes<br />

WRBUF FUnction 319

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

Saved successfully!

Ooh no, something went wrong!