I need to, ultimately, create a flatfile for exporting insurance information to a third-party vendor. Each individual is to have no more than 1 line per file, which contains their coverage information, if any, on 4 different type of insurance. What i need is for 1 field in a table to determine the output for multiple fields in the flatfile.
I think the best way to convey what i am trying accomplish is by;
If TABLE.FIELD1 = XXX then
then OUTPUT1 = Y
OUTPUT2 = N
OUTPUT3 = TABLE.FIELD3
OUTPUT4 = 3
OUTPUT5 = ("WORKING CASE STATEMENT")
else OUTPUT1 = N
OUTPUT2 = null
OUTPUT3 = null
OUTPUT4 = null
OUTPUT5 = null
If TABLE.FIELD1 = RRR then
then OUTPUT6 = Y
OUTPUT7 = N
OUTPUT8 = TABLE.FIELD3
OUTPUT9 = 3
OUTPUT10 = ("WORKING CASE STATEMENT")
else OUTPUT6 = N
OUTPUT7 = null
OUTPUT8 = null
OUTPUT9 = null
OUTPUT10 = null
Sorry if this is confusing, but what would be the best means of accomplishing this? I know a single CASE can't produce output for more than one field.
Thanks in advance.
I think the best way to convey what i am trying accomplish is by;
If TABLE.FIELD1 = XXX then
then OUTPUT1 = Y
OUTPUT2 = N
OUTPUT3 = TABLE.FIELD3
OUTPUT4 = 3
OUTPUT5 = ("WORKING CASE STATEMENT")
else OUTPUT1 = N
OUTPUT2 = null
OUTPUT3 = null
OUTPUT4 = null
OUTPUT5 = null
If TABLE.FIELD1 = RRR then
then OUTPUT6 = Y
OUTPUT7 = N
OUTPUT8 = TABLE.FIELD3
OUTPUT9 = 3
OUTPUT10 = ("WORKING CASE STATEMENT")
else OUTPUT6 = N
OUTPUT7 = null
OUTPUT8 = null
OUTPUT9 = null
OUTPUT10 = null
Sorry if this is confusing, but what would be the best means of accomplishing this? I know a single CASE can't produce output for more than one field.
Thanks in advance.
Comment