hi, newbie here. first off, i tried searching but gave up after a coupla hours. apologies if this is a duplicate. i'm working on creating an export file by exporting only certain fields to match a flat file layout for another application. the flat file has specific length requirements, thus my fields in FM must be padded to fit those requirements. i'm using calculated field definitions to accommodate this need, but the logic i'm using for certain fields isn't quite right.
for example:
Case(export_responsecat="RSVPA ", "ATTENDED", export_responsecat="RSVPD ", "NO SHOW ", export_responsecat=" ", " ")
where if the export_responsecat field is RSVPA, then the export_responsetype field is ATTENDED, etc.
the reason for the space after NO SHOW is to make this fit the length requirement of 8 characters (same issue w/ the "null" case). in the near future, i'm gonna have to accommodate other field entries, which my code will not do efficiently. any ideas or suggestions?
i also have another quick question. i'm also exporting a date column into this flat file. the requirements for this field is MMDDYYYY. the calculated field code i'm using is just "TODAY," but this formats the date as MM/DD/YYYY (or however my machine is configged). the slashes add 2 extra spaces which throw my flat file off. i tried formatting this date field in FM, but it will not allow me since it is a calculated field. is there a work-around?
sorry for blabbing and thanks for looking!