Gene,
The /'s in your file name make it invalid. Those are directory separators. They way you have your file name, it's expecting the following directory structure:
/Excel
/Combined CAT to Premium 03
/21
I'm guessing that's not what you want. Try changing "03/31/2008" to "03-31-2008" and see if the error goes away.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Gene Burns
Sent: Tuesday, April 15, 2008 10:44 AM
To: RPG400-L@xxxxxxxxxxxx
Subject: error saving spreadsheet
I'm using Scott Klement's HSSF to create spreadsheets.
My latest program runs fine until it reaches the hssf_save procedure, where
I get RNX0301 on the following statement:
wwFile = new_FileOutputStream(wwStr);
The variables are as follows;
wwStr = 11702
peFilename = /Excel/Combined CAT to Premium 03/31/2008.xls
peBook = 8
Can anyone tell me what this error means? Debug in 7.0.0.4 shows me where
this is happening but does not give me much to go on for fixing it.
Gene
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.