Custom LEN File Format

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Custom LEN File Format

  • Creator
    Topic
  • #50530
    Jerry Tilsley
    Participant

    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!

Viewing 0 reply threads
  • Author
    Replies
    • #66489
      Jim Kosloskey
      Participant

      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.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 0 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,116
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10