reading variable block file

Hi,

I have a variable block file which was transmitted from mainframe side.

When i browse the variable block file in mainframe i can see it as

!Line 1

!Line 2

!Line 3

but once we transmit the file in Unix box, the file contents appear as

!Line1!Line2!Line3

does java differentiate between variable block and fixed block files..

does java has separate API to read Variable block file

[444 byte] By [anaik100a] at [2007-11-26 18:12:40]
«« Keyword
»» help
# 1

> but once we transmit the file in Unix box

Transmit it how?

> does java differentiate between variable block and

> fixed block files.

Java doesn't know either of them from a hole in the ground, or third base, take your pick.

> does java has separate API to read Variable block file

No.

ejpa at 2007-7-9 5:45:34 > top of Java-index,Java Essentials,Java Programming...
# 2
> Java doesn't know either of them from a hole in the groundThat's where I thought most mainframes were these days ;-()
DrLaszloJamfa at 2007-7-9 5:45:34 > top of Java-index,Java Essentials,Java Programming...
# 3
i FTP the file from mainframe to UNIX box..
anaik100a at 2007-7-9 5:45:34 > top of Java-index,Java Essentials,Java Programming...
# 4

Ah. Then perhaps the file browser that you use in the mainframe is displaying the data in lines even though there are actually no new-line characters separating the records. For your convenience of course.

And perhaps there's an option in the mainframe FTP client that can insert those new-line characters if you need them. Although it's quite possible that you don't need them in the Unix system. If the only problem is that you don't see any, then just write your program assuming that there are none.

DrClapa at 2007-7-9 5:45:34 > top of Java-index,Java Essentials,Java Programming...