I will take a look at that John,
But it is not related to the H spec, I have an h spec at the top of the
module that has the allnull.
From: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
To: rpg400-l@xxxxxxxxxxxx
Date: 01/05/2010 11:45 AM
Subject: Re: Issue with %NULLIND
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
It is not related to your problem (this time anyway) - others have
already pointed out the issue there.
However, I noticed in your code that you have a "naked" d data type in
your PI (i.e. one with no DATFMT specified). Unless you can
absolutely guarantee that nothing but an ISO date format will ever be
used by any program in your system this is a dangerous practice. A
naked d means use the default format - but the default can change from
program to program based on their H-specs. As a result, the prototype
that should protect you from passing an invalid date format into a
routine will fail to do its job if the PI/PR rely on defaults.
Personally I'd also specify the other data types in the PI/PRs - but
I'm just a cranky old man.
Jon Paris
www.Partner400.com
www.SystemiDeveloper.com
On Jan 5, 2010, at 12:15 PM, rpg400-l-request@xxxxxxxxxxxx wrote:
0047.00 D PI 1n
0048.00 dwItmNo 7 0
0049.00 dwLotNo 20
0049.01 dwUsrDate d
As an Amazon Associate we earn from qualifying purchases.