Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RPG Null Value Support

28 views
Skip to first unread message

Titus Kruse

unread,
Nov 13, 2000, 3:00:00 AM11/13/00
to

A little design question for RPG-Users:

I want to make a server-program running in batch to write, update or
delete db-records. It should handle constraint errors and translate them to
client programs. The data for write and update should be passed to the
server throuh data queues. To store the data in client programs, I want to
use external described data structures. This also reduces maintenance
expense when a record format will be changed.

But now the problem: Null capable fields in the record formats are not null
capable fields in data structure. RPG doesn't provide internal null fields.
Does anybody have an idea to store and pass the null flags throuh the data
queue? Using an array and switch their corresponding fields later needs much
coding.

Titus.


Chris Bipes - cableone

unread,
Nov 13, 2000, 3:00:00 AM11/13/00
to
If you look at the way the data base manages triggers through a null byte
map. This is a one character field for each field in the file. It follows
the external data structure. 1=null 0=not null.
If you use a structure similar to IBM's trigger buffer it should work like a
charm and most RPG programmers will understand. IBM already gave us a
standard, lets follow it in our applications

Chris Bipes
Sr. P/A
CrossCheck, Inc.

"Titus Kruse" <mar...@tecs.de> wrote in message
news:3a10...@news.ginko.net...

Simon B.

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
In article <3a10...@news.ginko.net>,

> RPG doesn't provide internal null fields.

RPGIV does (see the ALWNULL parameter), RPGIII does not (ASAIK).

--
Simon Brunning
The opinions stated above aren't those of my employer. In fact, they're
probably not even my own. You know what, just don't even bother reading
it.


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages