iSeries: Accessing src PF member using Java/400

60 pts.
Tags:
BufferedReader
IFSFile
iSeries
iSeries development
iSeries Java programming
Java
Java classes
Java/400
Physical File
QSYSObjectPathName
SequentialFile
I am a veteran iSeries programmer but new to Java. We have a requirement of reading src PF member as record (each line) and to be transmitted. Also, incoming streams to be created as a src PF member by adding the recs in it. Which Java/400 class can be used to read from a member (e.g /qsys.lib/proj.lib/qclsrc.lib/clpgm1.mbr) and write to a memeber (created a afresh). I was playing with some of the classes like IFSFile, BufferedReader, SequentialFile, QSYSObjectPathName..etc. but could not able to figure out which combination is the best for reading/writing memeber. Any help will be appreciated. Many thanks Sudip
ASKED: November 17, 2008  6:28 AM
UPDATED: November 17, 2008  2:17 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Although this isn’t my bag, I can start the discussion.
Here’s my take on it.
Java cannot read from a “member”
You or your program needs to create an SQL alias – this creates a named object with points at the member. You then “connect” to the alias and read / write from/to the alias.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following