Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Using flat file (delimited file) as a source in Data Services

Here is an example of how to use a delimited flat file as a source in BODS.

  1. Login to BODS Designer.
  2. Create a test Project (TEST_PROJECT).
  3. Create a test Job (JOB_TEST_FLATFILE)
  4. Create a Dataflow and name as (DF_FLATFILE)

     Now we need to create a File Format for which we will be using our input file as a source.

  1. Go to the Local Object Library and click on the Formats Tab.
  2. Right click the Flat files and click on NEW. The below screen appears.
  3. Make sure the file type you select is “Delimited” for the delimited file format.
  4. Give appropriate name for the File Format. Say Test_FF
  5. Root Directory - Select the location from where the input file needs to be picked up from.
  6. File Name – Under this we have to select the file which needs to be taken as an input
  7. Under delimiters, select the row delimiter (| in this example) and the column delimiter. (Mostly a new line)
  8. If your file contains header as the first line and if you do not want it to appear in the source, then select the option ‘Skip row header’ as ‘Yes’.

  9.      Now click on Save and close.

10.     The file format will be created and this can be now used as an input for your job.

Using Multiple flat files (delimited) as source with single file format

We can also choose multiple files instead of single file by separating the file names with commas or placing wild card character at the end of the file name.

For example I have taken 2 input files Test1.txt and Test2.txt

Below are the inputs of these 2 files.

In the File Format Editor, the place where the File name is specified, place Test*.txt. This takes the input from 2 files (Test1.txt and Test2.txt). We can also provide the file names separated by commas.

The output of the job is combined with both input file Test1.txt and Test2.txt  as shown below.

4 Comments
Labels in this area