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
Custom LEN File Format
Jerry Tilsley
Is there anyway to create a custom LEN File format similar to LEN10 for the file format of Fileset-Local Inbound? I would like to read in just the first 100 characters of a file, not the whole file. The files I will be reading in will have all the necessary info that I need in the first 100 characters, but the file themselves could get close to 30MB or more. This is just too much wasted resources if I cannot limit to 100 characters.
Thanks!
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Write a TPS inbound proc to truncate the message.
You will still read in the 30 MB but only pass 100 characters from the inbound.
Or...
Write a UPOC Protocol proc (but then you need to locate the file, etc.) and do all of the I/O yourself. There is a Tcl Files command that will let you only read so many characters at a time. However, I think you need to manage your position, etc.
Or...
Use the dir-parse UPoC and execute a Tcl proc that does the file handling and creates the truncated file or replaces the original files with the truncated files. Then point the directory list to the truncated files.
Probaly other ways as well - but I don't know of any configuration option that just reads a certain number of characters.
Personally, we have a lot of storage and I would tend to opt for the Inbound Tps proc wherein I truncated the message.