What OS version are you on? In the future you will be able to use select column from (insert data into table ) syntax. Or something similar to that. Don't remember which OS. In the mean time you can use IDENTITY_VAL_LOCAL()

http://www.lmgtfy.com/?q=IDENTITY_VAL_LOCAL+iseries


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gqcy
Sent: Thursday, June 16, 2011 2:31 PM
To: midrange-l@xxxxxxxxxxxx
Subject: SQL - Identity column.

Is there a way, when I write a record with a identity column, that the
SQL can return the value?
I would like to push that value to other files, but am I stuck to
retrieving the record again to find out the value of the identity column?

thanks,
-gerald

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

________________________________

Notice from Bob Evans Farms, Inc: This e-mail message, including any attachments, may contain confidential information that is intended only for the person or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].