Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it possible in java?  RSS feed

 
pavi
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i want to read a mainframe file from java.

Is it possible to read a mainframe file directly using java APIs without converting the file into a text file?

Thanks in Advance
 
Sree Chinna
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
File reading is permitted but in what format is the main frame file present and where is it present ?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a "mainframe file"? Using the java.io classes it's possible to read any file, text or binary. The question is whether the file format is documented, and the Java code can make sense of it.

Moving to the I/O forum.
 
pavi
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually the file is a mainframe specific file which is called as a ps file(partition sequential)file.currently the mainframe program runs a job to convert the ps file to text file and puts the text file into the queue.

From the queue java reads the text file.but now we need to read the ps file directly.is it possible?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's possible. Did you check out the java.io package I mentioned?

But converting it to a text file -as the mainframe program does- presumably requires inside knowledge of the file format. You will need to code that yourself, if you don't have a library that can handle it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!