US and Worldwide: +1 (866) 660-7555
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Pdi

  1. #11
    Join Date
    Jun 2012
    Posts
    1,443

    Default

    Of course, the data can be extracted using the Text file input step, as long as it has a documented structure.
    And the content encoding US-ASCII is understood, too, even though the encoding seems to be pure ASCII.

    A sample file is shared by the original poster.
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

  2. #12

    Default

    Marabu, thanks for quick reply
    I have seen the files shared by the poster. What is the structure it should have to be called a structured ASCII file.
    I just want understand if the text file input can parse/convert an ASCII file, if yes, what needs to be the structure of that file .
    As per my understanding, the text file input might not convert the ASCII encoded file to a text file unless we define the correct encoding type.
    Please advice

  3. #13
    Join Date
    Jun 2012
    Posts
    1,443

    Default

    Structered text files wrt the Text file input (TFI) step are delimited text files (CSV) and fixed length text files (FIXED).
    TFI requires the input file to be either CSV or FIXED, with each row having the same structure.

    As I can see, the sample file has record types (A, B, C) indicated on the first position of each row.
    Therefore a TFI step will be necessary for each and every record type. The type can be confugured through a filter.

    TFI can extract data from text files with any supported encoding.
    No need to support ASCII for input files directly, since ASCII is a proper subset of US-ASCII or even UTF-8.
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

  4. #14

    Default

    Here is the structured ASCII file using the meta data . The meta data explains the fixed length definitions.
    Using the TFI, I have restructured this ASCII file, and this is the output I get.
    Now, can I convert this ASCII code to text ? May be with the use of a value mapper/an ASCII table definition ?
    PFA structured ASCII file: fixed length
    Last edited by bysanees; 07-24-2012 at 06:09 AM.

  5. #15
    Join Date
    Apr 2008
    Posts
    801

    Default

    Hi.
    I think that there is a bit of confusion with teh terminology.. or maybe I am confused!

    You do not convert ASCII to TEXT, because text files can be ASCII or UNICODE etc..
    Basically ASCII is a characteristic (kind of) of a Text file.

    Maybe you want to know how to convert a delimited text file to a Fixed length text file?
    Or do you want to convert a ASCII text file to a UNICODE text file?

    Mick

  6. #16
    Join Date
    Jun 2012
    Posts
    1,443

    Default

    Quote Originally Posted by Mick_data View Post
    I am confused!
    Me too.

    I really didn't see that coming...
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •