For this job the AS400 is setup to write direct,
not thru the spooler.(I don't know much about the AS400 side)

.tn5250rc looks like:
careceipt {
     host=192.168.1.11
     env.DEVNAME=careceipt
     env.IBMMFRTYPMDL=*IBM42013
}

The command line is:
lp5250d trace=/tmp/tra outputcommand="cat  >/tmp/out" careceipt

No output to /tmp/out ( or to a printer if I cat to device or spool thru lpr)

/tmp/tra  follows.
Note that close to end there seems to be a print complete record
but no last  in chain record.
Should this print?


lp5250d version 0.17.1, built on Aug 24 2003
host = 192.168.1.11
Non-Blocking
tn5250_char_map_new: map = "37"
HOST, This->status  = 8 0
GotVerb(2):<IAC><DO><NEWENV>
GotVerb(3):<IAC><DO><NEWENV>
HOST, This->status  = 8 0
GotVerb(2):<IAC><DO><TERMTYPE>
GotVerb(3):<IAC><DO><TERMTYPE>
GotSB:<IAC><SB><NEWENV><SEND>
     <USERVAR>IBMRSEED<87 B8 F5 D9 C0 A5 04 04>
     <VAR><USERVAR><IAC><SE>
SentSB:<IAC><SB><NEWENV><IS>
     <VAR>DEVNAME
     <USERVAR>careceipt
     <VAR>IBMMFRTYPMDL
     <USERVAR>*IBM42013
     <VAR>TERM
     <USERVAR>IBM-3812-1
     <VAR>IBMFONT
     <USERVAR>12
     <VAR>IBMTRANSFORM
     <USERVAR>1<IAC><SE>
GotSB:<IAC><SB><TERMTYPE><SEND><IAC><SE>
SentSB:<IAC><SB><TERMTYPE><IS>IBM-3812-1<IAC><SE>
HOST, This->status  = 8 1
GotVerb(2):<IAC><DO><END_OF_REC>
GotVerb(3):<IAC><DO><END_OF_REC>
HOST, This->status  = 8 1
GotVerb(2):<IAC><WILL><END_OF_REC>
GotVerb(3):<IAC><WILL><END_OF_REC>
HOST, This->status  = 8 1
GotVerb(2):<IAC><DO><BINARY>
GotVerb(3):<IAC><DO><BINARY>
HOST, This->status  = 8 1
GotVerb(2):<IAC><WILL><BINARY>
GotVerb(3):<IAC><WILL><BINARY>
tn5250_char_map_new: map = "37"
Dumping buffer (length=73):
@record +0000 004912a0 90000560 060020c0 003d0000   .... .-. .{ .
@record +0010 c9f9f0f2 d5d3d9c9 e2c34040 c3c1d9c5  I902NLRISC  CARE
@record +0020 c3c5c9d7 e3400000 00000000 00000000  CEIPT
@record +0030 00000000 00000000 00000000 00000000
@record +0040 00000000 00000000 00

@eor
tn5250_stream_get_record: offset = 11
HOST, This->status  = 8 1
GotVerb(2):<IAC><DO><06>Ta@x
üÿ¿^?
@P
»
g
è
@
¯é
@u
è
@0
üÿ¿
GotVerb(3):<IAC><DO><06>Ta
@x
üÿ¿^?
@P
»
g
è
@
ºé
@u
è
@0
üÿ¿
HOST, This->status  = 8 1
GotVerb(2):<IAC><DO><06>Ta
@x
üÿ¿^?
@P
»
g
è
@
¯é
@u
è
@0
üÿ¿
GotVerb(3):<IAC><DO><06>Ta
@x
üÿ¿^?
@P
»
g
è
@
ºé
@u
è
@0
üÿ¿
HOST, This->status  = 8 1
GotVerb(2):<IAC><DO><06>Ta
@x
üÿ¿^?
@P
»
g
è
@
¯é
@u
è
@0
üÿ¿
GotVerb(3):<IAC><DO><06>Ta
@x
üÿ¿^?
@P
»
g
è
@
ºé
@u
è
@0
üÿ¿
tn5250_char_map_new: map = "37"
Dumping buffer (length=134):
@record +0000 008612a0 01010a18 00010000 00000000   f...... .
@record +0010 03741118 0d12141b 461b481b 4f1b541b  ............|...
@record +0020 55001b57 001b3500 1b5f001b 2d001b36  . .. .. .. .. ..
@record +0030 1b57001b 46120f1b 49021b49 031b461b  .. .............
@record +0040 481b2d00 1b410c1b 321b5700 1b46120f  ... ....... ....
@record +0050 1b57001b 46120f1b 49001b46 1b481b2d  .. ...... ......
@record +0060 001b410c 1b321b57 001b4612 0f1b4902   ....... .......
@record +0070 1b49031b 57001b46 120f1b57 001b4612  ..... ...... ...
@record +0080 0f1b410c 1b32                        ......

@eor
tn5250_stream_get_record: offset = 16
SendPacket: length = 12
SendPacket: data follows.
SendPacket: data: 00 0A 12 A0 00 12 04 00 00 01 FF EF
tn5250_char_map_new: map = "37"
Dumping buffer (length=668):
@record +0000 029c12a0 01010a18 00010000 00000000  ........ .
@record +0010 03ff1b41 0c1b321b 43421b41 0c1b321b  ................
@record +0020 410c1b32 1b410c1b 320d0a0d 0a0d0a0d  ................
@record +0030 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d  ................
@record +0040 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d  ................
@record +0050 0a0d0a0d 0a0d0a20 20202020 20202020  ................
@record +0060 20202020 20202020 20202020 20202020  ................
@record +0070 20202020 20202020 20202020 20202020  ................
@record +0080 51554552 59204e41 4d45202e 202e202e  ......+.(.......
@record +0090 202e202e 20464f4f 4241520d 0a202020  ......||........
@record +00A0 20202020 20202020 20202020 20202020  ................
@record +00B0 20202020 20202020 20202020 20202020  ................
@record +00C0 20202020 20204c49 42524152 59204e41  ......<.......+.
@record +00D0 4d45202e 202e202e 202e2041 4d515545  (...........(...
@record +00E0 52590d0a 0d0a2020 20202020 20202020  ................
@record +00F0 20202020 20202020 20202020 20202020  ................
@record +0100 20202020 20202020 20202020 20202046  ................
@record +0110 4903ff4c 45202020 20202020 20204c49  ...<..........<.
@record +0120 42524152 59202020 2020204d 454d4245  ...........(.(..
@record +0130 52202020 20202020 464f524d 41540d0a  .........|.(....
@record +0140 20202020 20202020 20202020 20202020  ................
@record +0150 20202020 20202020 20202020 20202020  ................
@record +0160 20202020 20202020 20594141 46524550  ...............&
@record +0170 20202020 2020414d 464c4942 4e202020  .......(.<..+...
@record +0180 20202059 41414652 45502020 20202020  .........&......
@record +0190 46414652 45415a0d 0a0d0a20 20202020  ......!.........
@record +01A0 20202020 20202020 20202020 20202020  ................
@record +01B0 20202020 20202020 20202020 20202020  ................
@record +01C0 20202020 44415445 202e202e 202e202e  ................
@record +01D0 202e202e 202e202e 2030342f 32312f30  ................
@record +01E0 340d0a20 20202020 20202020 20202020  ................
@record +01F0 20202020 20202020 20202020 20202020  ................
@record +0200 20202020 20202020 20202020 54494d45  ..............(.
@record +0210 202e0388 202e202e 202e202e 202e202e  ...h............
@record +0220 202e2030 393a3436 3a33340d 0a0d0a0d  ................
@record +0230 0a202020 20202020 20202020 20202020  ................
@record +0240 20202020 20202020 20202020 20202020  ................
@record +0250 20202020 20202020 20202020 20202020  ................
@record +0260 20202020 20202020 20202020 4d696e49  ............(.>.
@record +0270 54353235 30205465 73740d0a 0a0a0a0a  ................
@record +0280 0a0a0a0a 0a0a0a0a 0a0a0a0a 0a0a0a0a  ................
@record +0290 0a0a0a0a 0a0a0a0a 0a0a0a0a           ............

@eor
tn5250_stream_get_record: offset = 16
SendPacket: length = 12
SendPacket: data follows.
SendPacket: data: 00 0A 12 A0 00 12 04 00 00 01 FF EF
tn5250_char_map_new: map = "37"
Dumping buffer (length=243):
@record +0000 00f312a0 01010a18 00010000 00000000   3...... .
@record +0010 03e11b41 0c1b321b 43421b41 0c1b321b  ................
@record +0020 410c1b32 0a0a0a0a 0a1b410c 1b323034  ................
@record +0030 2f32312f 30342020 30393a34 363a3334  ................
@record +0040 20202020 20202020 20202050 41474520  ...........&....
@record +0050 20202031 0d0a0d0a 456e7469 74792020  .........>...`..
@record +0060 20202020 456e7469 7479206e 616d650d  .....>...`.>/_..
@record +0070 0a69640d 0a0d0a33 30303037 30202020  ................
@record +0080 20202041 42432050 65737420 436f6e74  .......&.....?>.
@record +0090 726f6c0d 0a0d0a2a 202a202a 20204520  .?%.............
@record +00A0 4e204420 204f2046 20205220 45205020  +....|........&.
@record +00B0 4f205220 5420202a 202a202a 0d0a0a0a  |...............
@record +00C0 0a0a0a0a 0a0a0a0a 0a0a0a0a 0a0a0a0a  ................
@record +00D0 0a0a0a0a 0a0a0a0a 0a0a0a0a 0a0a0a0a  ................
@record +00E0 0a0a0a0a 0a0a0a0a 0a0a0a0a 0a0a0a0a  ................
@record +00F0 0a0a0a                               ...

@eor
tn5250_stream_get_record: offset = 16
SendPacket: length = 12
SendPacket: data follows.
SendPacket: data: 00 0A 12 A0 00 12 04 00 00 01 FF EF
tn5250_char_map_new: map = "37"
Dumping buffer (length=41):
@record +0000 002912a0 01010a18 00010000 00000000   ....... .
@record +0010 03171b46 1b481b4f 1b541b55 001b5700  .......|.... ..
@record +0020 1b35001b 5f001b2d 00                 .. .. ..

@eor
tn5250_stream_get_record: offset = 16
SendPacket: length = 12
SendPacket: data follows.
SendPacket: data: 00 0A 12 A0 00 12 04 00 00 01 FF EF
tn5250_char_map_new: map = "37"
Dumping buffer (length=16):
@record +0000 001012a0 01010a18 00020000 00000000   ....... .

@eor
tn5250_stream_get_record: offset = 16

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.