×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Depends on where you got the GetOSInfo() function you're calling.
What does it do for you? Perhaps there's a work-around.

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Holden Tommy
Sent: Friday, April 14, 2006 1:59 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Pointer or Parameter Error...

Ok I found a workaround...appears that the error is not related to the
file (even though it's blowing up there stating that the file is closed
when it's not....

Anyway, I have been duplicating & removing various bits of code to find
my failing point (which should have produced a "real" error message....)

The failing point was due to the GetOSInfo() procedure in the service
program.  I restructed the procedure to return a varying field (in this
case the BasicInfo DS) & made the necessary code change to the extract
program KR0057EX & it works fine now.  Should this be reported to IBM???
What's your opinion?? 


Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy
Sent: Friday, April 14, 2006 10:21 AM
To: RPG programming on the AS400 / iSeries
Subject: Pointer or Parameter Error...

Here's some more information...

I dumped the error & the file status is stating that the file is closed
during an I/O operation.  I added a check after the open statement & it
returns that the file is open.  There is NO close statement on this
file.  I added another check for the %open before the write & it returns
a blank...I can look at my open files & sure enough the file is open??? 


Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Holden Tommy
Sent: Thursday, April 13, 2006 10:07 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: 

Ok...this is really strange (at least to me...)  I have a data
extraction program I'm developing & throughout the process I have been
unit testing & everything has been working fine (incomplete data...but
expected at that time...)  anyway the write to the file has performed
fine until recently.  I can't figure out for the life of my what has
happened.  Now the program chugs along fine, output data looks great but
when I hit the write statement it bombs with the "pointer or parameter
error" I normally associate with procedure calls etc.  I've recompiled
the PF, service program & the extraction program multiple times to no
avail.

Here are the source members....someone please help a poor eyesore
geek...


http://www.tommyholden.com/kr0057.zip

Thanks,
Tommy Holden




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.