maggielady
Technical User
I have these lines of code and I want the family_id to increment and I want the key field in the syskey table to increment the same as the family_id. I can't get it to work. Could someone Please give me some help???
select 18
nextnum=key (this is numeric)
* FAMILY PROFILE - CREATE
SELECT 2
APPEND BLANK (family_id is char)
REPLACE FAMILY_ID WITH str(nextnum+1)
TFAMID=FAMILY_ID
nextnum=(nextnum+1)
select 18
nextnum=(nextnum+1)
18 is the syskey table and 2 is the family table I need the number to go in and be incremented for each new family
Thanks a bunch in advance for your help!
select 18
nextnum=key (this is numeric)
* FAMILY PROFILE - CREATE
SELECT 2
APPEND BLANK (family_id is char)
REPLACE FAMILY_ID WITH str(nextnum+1)
TFAMID=FAMILY_ID
nextnum=(nextnum+1)
select 18
nextnum=(nextnum+1)
18 is the syskey table and 2 is the family table I need the number to go in and be incremented for each new family
Thanks a bunch in advance for your help!