Thanks Birgitta.
I will work with this code.
Jon
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Birgitta Hauser
Sent: Friday, March 18, 2011 8:21 AM
To: 'RPG programming on the IBM i / System i'
Subject: AW: V7R1 Field Procedures
Hi Jon,
you may check the following paper
Encryption enhancements: Field procedure support in DB2 for i 7.1
http://www.ibm.com/developerworks/data/library/techarticle/dm-1101encryptenh
ance/index.html
Even though I'm not very happy about the RPG example.
It seems to me being translated row by row from the C code.
I'm no C expert, but it seems to me C's short data type is not the same as
2B 0.
Also defining varying lengths fields as follows looks rather strange (and
not correct either) to me.
D En_Lob_Ds Ds Qualified
D Len 5B 0
D Data 1 dim(512)
D
D De_Lob_Ds Ds LikeDs(En_Lob_Ds)
D
D En_VChar_Ds Ds Qualified
D Len 2B 0
D Data 1 dim(512)
But I haven't found any time yet to test the sample code.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Jon Sinner
Gesendet: Friday, 18. March 2011 01:29
An: RPG400-L@xxxxxxxxxxxx
Betreff: V7R1 Field Procedures
The boss had decided that he wants to encrypt a couple of fields in our
customer master file. I have been reading the SQL programming manual and
found field procedures which seams to be the process to use. The manual has
a sample program written in "C" (I think), anyway I don't understand the
sample program.
Has anyone written a program that is called as a field procedure and if so
would you be willing to share the program?
Thanks
Jon
As an Amazon Associate we earn from qualifying purchases.