Loading ...
Sorry, an error occurred while loading the content.

Re: Create File From A File

Expand Messages
  • bozlawless
    Flo thanks for your help i cleaned up my master file and put a name above all the M30 but it is still stopping at O1232 AND O1518 When i cleaned up my
    Message 1 of 21 , Dec 7, 2009
    • 0 Attachment
      Flo thanks for your help i cleaned up my "master file" and put a name above all the M30 but it is still stopping at O1232 AND O1518

      When i cleaned up my "master file" and run your second clip it spits out a text file and shoes all the names are good


      Thanks
      Mike

      --- In ntb-clips@yahoogroups.com, "flo.gehrke" <flo.gehrke@...> wrote:
      >
      > --- In ntb-clips@yahoogroups.com, "bozlawless" <bozlawless@> wrote:
      > >
      > > ver 6.12 i sent you more info
      > >
      >
      > Mike,
      >
      > There's a problem with your data. You wrote...
      >
      > 1. that the line before "M30" is containing the string that serves as the file name.
      >
      > 2. that this line has a format like '( SF 240B )'. But that's not the case in all those lines. Consequently, the clip captures another line that doesn't comply with the rules of correct file names. This ends up in an I/O Error.
      >
      > You may run the following clip in order to see what those lines in question actually contain:
      >
      >
      > ^!Jump 1
      >
      > :Loop
      > ^!Find "^M30" RS
      > ^!IfError End
      > ^!Set %Adr%=^$GetLine(-1)$
      > ^!Append %List%=^%Adr%^%NL%
      > ^!Goto Loop
      >
      > :End
      > ^!Toolbar New Document
      > ^!InsertText ^%List%
      > ^!ClearVariable %List%
      >
      > For example: See the following lines...
      >
      > N84G28U0
      > T0101
      > M30
      >
      > O0303
      >
      > As you can see, the line before 'M30' has a format that doesn't accord with the format you described.
      >
      > So it's up to you to clean your data or to give us a precise description of all possible formats of this line containing the file name.
      >
      > Regards,
      > Flo
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.