I read the row and pass the whole thing to the client. The client passes the whole row back on an update request, which I put in a data structure (based on the table record). I do a read then update the row based on the data structure with the client data.
-----Original Message-----
From: Rob Berendt [mailto:rob@xxxxxxxxx]
Sent: Wednesday, February 07, 2018 8:53 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Identity value of 0
I'm still trying to figure out why you got a zero in that column. Look at this scenario You do your first insert. Your identity column is set to 1.
You do a READ. "ID"=1.
You do an update. It should write back out a 1.
The only way it should write out a zero (sans your rfe) is if you did a WRITE, no READ, and then a UPDATE. Or if you cleared, or reset your values in between the READ and the UPDATE. Can you run that in debug and see a value for ID right before the UPDATE? Does it write that out? If ID is equal to anything other than a zero prior to the UPDATE then I would think this a PTF issue and not an rfe issue.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
As an Amazon Associate we earn from qualifying purchases.