todsn loops if no delimiter on end of file
Posted: Wed Oct 03, 2007 5:48 am
Hello, I've got the following, easy-to-reproduce problem:
printf "aaa\nbbb\nccc" | todsn -o 'space=(trk,1)' -l 0x15 //xxx.b.ttx
todsn(XXX.B.TTX)[E]: copyData: write error: EDC5065I A write system error was detected.
todsn(XXX.B.TTX)[N]: 11 bytes read; 11,402 records/34,203 bytes written in 0.014 seconds (785.714 Bytes/sec).
In fact, the dataset will be full,
IEC031I D37-04,IFG0554P,SSHD9,*OMVSEX,SYS00002,... repeating the last record:
Command ===>
********************************* Top of Data
aaa
bbb
ccc
ccc
ccc
ccc
ccc
......
---
Note that this problems seems to be related to the codepage and line-delimiter support as well.
I use LC_ALL=Hu_HU.IBM-1165.
Using "-l 0x15" fails for both codepages 1047 and 1165.
In 1047, ignoring -l or use "l nl" works correct, but the functionally identical "-l 0x15" fails.
In 1165, "-l nl" does not work, I must specify "-l 0x15", although 1165 is very similar to 1047 (except of some accented characters).
I am using z/OS 1.7, and todsn 1.0.0 2007-01-17
Hope you can reproduce this.
Best regards Jeno
printf "aaa\nbbb\nccc" | todsn -o 'space=(trk,1)' -l 0x15 //xxx.b.ttx
todsn(XXX.B.TTX)[E]: copyData: write error: EDC5065I A write system error was detected.
todsn(XXX.B.TTX)[N]: 11 bytes read; 11,402 records/34,203 bytes written in 0.014 seconds (785.714 Bytes/sec).
In fact, the dataset will be full,
IEC031I D37-04,IFG0554P,SSHD9,*OMVSEX,SYS00002,... repeating the last record:
Command ===>
********************************* Top of Data
aaa
bbb
ccc
ccc
ccc
ccc
ccc
......
---
Note that this problems seems to be related to the codepage and line-delimiter support as well.
I use LC_ALL=Hu_HU.IBM-1165.
Using "-l 0x15" fails for both codepages 1047 and 1165.
In 1047, ignoring -l or use "l nl" works correct, but the functionally identical "-l 0x15" fails.
In 1165, "-l nl" does not work, I must specify "-l 0x15", although 1165 is very similar to 1047 (except of some accented characters).
I am using z/OS 1.7, and todsn 1.0.0 2007-01-17
Hope you can reproduce this.
Best regards Jeno