Page 1 of 1

using CICS SPOOL related statements in cobol pgm

PostPosted: Wed May 25, 2011 3:52 pm
by tina64
hi guys;
i've written a cobol program which makes structered lines filled with special data, and send them on the spool, using CICS SPOOL relates statements such as SPOOL OPEN, SPOOL WRITE, SPOOL CLOSE.

and then i want to print the output in the spool. so i have sent special hex characters such as x'15' for having new line and x'0c' for having new page(in cobol pgm)...but when i sent the output to the printer, it's paging isn't right...

can anyone help me on this??

Re: using CICS SPOOL related statements in cobol pgm

PostPosted: Wed May 25, 2011 4:11 pm
by enrico-sorichetti
those are PC /UNIX control characters
for the IBM line printing architecture
the control character is the first byte of the record
<usually> the printed record length is 121/133 1 byte for the control char 120/132 bytes of data

the control char can be
A ISO/ANSI device control characters. (FBA/VBA) the common practice for COBOL code
M machine code control characters (FBM/VBM)

Re: using CICS SPOOL related statements in cobol pgm

PostPosted: Sat May 28, 2011 4:41 pm
by tina64
thanks a lot dear enrico..
yes..i could set the first byte for the control character , with the appropriate hex codes, by setting MCC parameter in SPOOLOPEN statement...before that , i couldn't change the first byte of the spool record, and that was the reason of inappropriate paging...