infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
rearrange billing flat file in TCL
System
Originally posted by Gary Atkinson
Ok here goes---
Here is an example of what flat file looks like (each line term with a NL)
4201034600051 1212104039140 001
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Gary,
Are you wanting to do this in an Xlate?
If so, I would think that some of the lifting can be done by using the FRL for more than just specifying the individual fields.
Then some Tables might be in order (depending on the dynamics involved).
The IF Action will come into play as well as SUPPRESS, etc.
And finally maybe some minor Tcl.
Charlie Bursell
Lay this out in an FRL, naming each field then state the requirements. It would make more sense that way.
As Jim says, if you can you need to use FRL, because flat file layouts can change and blow the Tcl out of the water
Be careful on file names like: YYYYMMDDHHMMSS.MISCHG
The engine can process more than one record per second and you *WILL* lose data. Combine with a counter.
System
Originally posted by Gary Atkinson
I have used FRL in the pass with flat files, but in this specific case. Doesn't the translation parse out one line of flat file at a time? How do account for looking at multiple lines in determining what the billing code should be?
Charlie Bursell
I am just saying define as an FRLfor ease of understanding. Then you can name each field and describe the problem much better.
An FRL can be passed as a file (eof). Not sure how easy it would be to translate.
I was just trying to wrap my arms around what he is trying to accomplish
System
Originally posted by Gary Atkinson
FRL is attached.
Charlie Bursell
That helps but still a bit confused
Are these 7 lines considered one record? Will there always be 7?
The part about adding and deleting lines is still very confusing to me.
Of course, I am easily confused :?
System
Originally posted by Gary Atkinson
Each line is a record.