When you run this program, does it print the message saying "File exist"?

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ashish Kulkarni
Sent: Monday, February 11, 2008 4:23 PM
To: java400-l@xxxxxxxxxxxx
Subject: CPF3012 Error when trying to retrieve RecordFormat

I have following code below

AS400 as400 = new AS400();
CommandCall cmd = new CommandCall(as400);
String liblList = "QTEMP MYLIB QGPL";
String command = "CHGLIBL LIBL(" + liblList.trim() +
boolean flag =;
QSYSObjectPathName filePath = new
QSYSObjectPathName("%LIBL%", "MYFILE", "FILE");
ObjectDescription od = new
System.out.println("File exist");
AS400File file = new SequentialFile(as400,
AS400FileRecordDescription recordDescription =
new AS400FileRecordDescription(as400, file.getPath());
RecordFormat[] format =

I am getting at the last statement in the above code,
what am i missing, the file is existing in the library
list. CPF3012 File
MYFILE in library *LIBL not found.


Never miss a thing. Make Yahoo your home page.

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact