Discussion:
DDL (getting rusty)
(too old to reply)
Henrik Paludan-Mørk
2023-03-20 13:36:11 UTC
Permalink
i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.

DEF
custname TYPE *.
custaccount TYPE custaccount.
custadrs TYPE adrsrec.
end.

where custadrs is really a RECORD used in a file.

so that the resulting DEF is in fact sort of nested.
This does not seem to work, and i am sure i misunderstand something.

What have i forgotten? (this time around...)
Randall
2023-03-21 01:39:42 UTC
Permalink
Post by Henrik Paludan-Mørk
i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.
DEF
custname TYPE *.
custaccount TYPE custaccount.
custadrs TYPE adrsrec.
end.
where custadrs is really a RECORD used in a file.
so that the resulting DEF is in fact sort of nested.
This does not seem to work, and i am sure i misunderstand something.
What have i forgotten? (this time around...)
I do not think you can reference a RECORD as a DEF type. Your RECORD should be defined in terms of a DEF, and then reference that DEF in another DEF. Don't forget the ?DICT statement to open the existing dictionary.
Loading...