08.11.2014 Views

Software Reference Manual - NetEx

Software Reference Manual - NetEx

Software Reference Manual - NetEx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MVC RMSGLEN,=F’22’ Message is 22 characters in length<br />

MVC RMSGLEV,=F’15’ Message level is ‘15’<br />

MVC RMSG(22),ABMSG Give message to caller as expected<br />

B CLOSE<br />

*<br />

* Process and write a record.<br />

* Get Unisys record, strip off control information,<br />

* and create IBM print record(s).<br />

* (It is assumed that each Unisys record is prefixed<br />

* with a 2-character header, which was inserted by the<br />

* sending record module. This header contains line<br />

* spacing-information as a signed, zoned number.<br />

* By previously agreed-upon convention, any negative<br />

* number means 'top of form'.)<br />

*<br />

WRITREC MVC SCOUNT(2),RBUF Get record header<br />

PACK SCOUNT(8),SCOUNT(2) Pack it<br />

CVB R6,SCOUNT Convert it to binary<br />

C R6,=F'O' Compare it with '01<br />

BL TOP If negative, branch to TOP<br />

BE SUPPRESS If zero, branch to SUPPRESS space<br />

*<br />

* Move the record.<br />

*<br />

MOVEIT MVC OUTAREA+1(132),RBUF+2 Get the record<br />

*<br />

* Write routine.<br />

*<br />

WRITE PUT PRINT,OUTAREA Output the record<br />

MVC OUTAREA,OUTAREA-1 Zero out OUTAREA<br />

BCT R6,WRITE Decrement and branch to print blank<br />

*<br />

* Else, fall through to normal response.<br />

*<br />

MVC RBUFLEV,=F'1' Return normal response in BUFLEV<br />

SR RO,RO Zero out RO<br />

ST RO,RMSGLEN Return a '01 for MSGLEN<br />

ST RO,RMSGLEV Return a '01 for MSGLEV<br />

B EXIT<br />

*<br />

* EOF routine. Return the proper stuff, then fall through<br />

* to the close routine.<br />

*<br />

EOF MVC RBUFLEV,=F'1' Return normal response in BUFLEV<br />

MVC RMSGLEN,=F'15' Message is 15 characters in length<br />

MVC RMSGLEV,=F'5' Message level is ‘5’<br />

MVC RMSG(15),EDMSG Give message to caller as expected<br />

*<br />

* Close routine. Close the print file and then fall through<br />

* to the exit routine.<br />

*<br />

CLOSE CLOSE (PRINT) Close the file<br />

*<br />

* Exit routine. Reverse housekeeping and return.<br />

*<br />

EXIT L R13,RMSAVE+4 Load R13 with addr of caller's savearea<br />

RETURN (14,12),,RC=O<br />

MAN-REF-H211-05 Appendix A: User Modules Page 69

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

Saved successfully!

Ooh no, something went wrong!