I have a large set in a functional Alpha 5 database that I need to export into a complex flat file output. I will simplify by example what I need to do:
Create a standard header record with a few variables like time/date.
Create a level 1 record with data from the top level table in the set
Create Multiple level 2 records with data from child tables.
Create Multiple level 3 records with data from sub-child tables.
Create a standard footer record.
If a record is new mark the record as an addition.
If the record is an update, create a record with information about the record for deletion, then create the a record with the same information as a new addition would have. The only way that I will know that the record is an update will be a flag that I have in the table at the top level of the set.
Nearly every field's output will need actions done to change the format. For example, dates and times will be converted from Alpha 5 default format to YYYYMMDDHHMM format.
I'm definitely not looking for exact instructions, this is complex. Referrals to sections of the help file and/or other posts are fine. I am not having any luck finding anything related for the exception of how to export 1 table to simple flat file layout. I am looking for an approach to the problem. I do not have experience with Xbasic yet, but I understand programming. My first thought is that I will have to code all of this in Xbasic. Is there an easier way with Action Scripting?
My current approach is moving all of the fields that I need, reformatting them as needed, then moving them from temporary tables. From the temporary tables, I plan on making an extract process to export into the flat file format that I need. It's just a first guess at how to make this happen.
Any help is greatly appreciated.
Create a standard header record with a few variables like time/date.
Create a level 1 record with data from the top level table in the set
Create Multiple level 2 records with data from child tables.
Create Multiple level 3 records with data from sub-child tables.
Create a standard footer record.
If a record is new mark the record as an addition.
If the record is an update, create a record with information about the record for deletion, then create the a record with the same information as a new addition would have. The only way that I will know that the record is an update will be a flag that I have in the table at the top level of the set.
Nearly every field's output will need actions done to change the format. For example, dates and times will be converted from Alpha 5 default format to YYYYMMDDHHMM format.
I'm definitely not looking for exact instructions, this is complex. Referrals to sections of the help file and/or other posts are fine. I am not having any luck finding anything related for the exception of how to export 1 table to simple flat file layout. I am looking for an approach to the problem. I do not have experience with Xbasic yet, but I understand programming. My first thought is that I will have to code all of this in Xbasic. Is there an easier way with Action Scripting?
My current approach is moving all of the fields that I need, reformatting them as needed, then moving them from temporary tables. From the temporary tables, I plan on making an extract process to export into the flat file format that I need. It's just a first guess at how to make this happen.
Any help is greatly appreciated.
Comment