Abinitio Interview Questions

Showing Questions 201 - 220 of 376 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    Sort data using reformat

    How can i sort the data using reformat component in Abinitio?

    And Tut

    • Apr 13th, 2016

    You can first create a vector using the rollup component and then use the vector_sort function in the reformat and then expand the vector using normalize. I hope this helps

    gouse

    • Jul 12th, 2015

    Using next_in_sequence inreformat transform function

  •  

    Ab Initio - Counting Records

    Using ROLLUP in Ab Initio, need to count the number of sites for each account e.g.

    Input file:
    SiteId, AcctId, Address
    675765, 1, Smit Street
    768768, 2, Orange Road
    767876, 1, New Road
    989898, 1, Jones Street
    878787, 3, Ele Lodge
    118768, 2, Red Street

    Output:
    AcctId, NoOfSites
    1, 3
    2, 2
    3, 1

    gouse

    • May 26th, 2016

    Rollup component key-acctid, no-of sites per accountid-count(acctid)

    ahamed

    • Mar 21st, 2016

    Input file-->rollup{acctId}(input need not be sorted, out.acctid::in.acctid, out.count::count(in.siteId))-->Output file

  •  

    Syntax for Year checking and Processing Date

    I have a scenario like, I am getting a date field from input in MMDDYY format and I have to check for same year as processing year then I should pass "", else if the input date is to previous year to processing date and less than 0301 then I should pass Y.
    How to check and process the date?

    ahamed

    • May 12th, 2016

    Inputfile-->reformat-->outputfile
    if((string_substring(in.indate),5,2)==string_substring(now(),5,2))""
    else "Y";

    mohankrishna

    • Apr 8th, 2016

    Use date function to get the current date and apply date_year function to get the processing year out of it. Do the same for input date to get the input year. If these two are equal set " " to output....

  •  

    .rec File Not Created

    In which scenario, .rec files will not get created even if graph fails? How to use in Abinitio graph?

    vijay

    • Nov 14th, 2017

    .rec files will be created only if you have checkpoints enabled in your graph.

    Prakash Poongavanam

    • Oct 14th, 2016

    .rec file will not be created if you not enabled checkpoints in your graph. So even if it get failed the graph will start from the beginning as there is no .rec file in the $AI_RUN directory.

  •  

    Modify Record in Multi-file

    How to modify record in multifile if data is ASCCI and if data is Obserddata?

    Mahesh

    • May 26th, 2021

    To check malformed records you can use m_dump -partial option.This option shows any incomplete records.Else run the graph and attach a reject and error port to see

    SP

    • Dec 11th, 2017

    1. View data and get the malformed record using m_dump. Note down that record number(s). 2. Using Filter by Expression, deselect only that/those record(s). 3. Using Reformat, specify values manually...

  •  

    Delete a Record from Multifile

    How to delete a record from a multifile?

    Sandeep

    • Sep 10th, 2017

    Linux command:
    vi `m_expand -native file_name`
    it will expand the control file and allow us to edit in all partition.

    SP

    • Jun 5th, 2017

    a. Build a duplicate graph with the same logic that processes the file b. Select Never Abort for that component where a failure may occur. c. Arrange Reject port for that component and run the grap...

  •  

    Multifiles with Join

    What is behavior of join with multifiles if I use Join via common key in both files and if the key is different what is the result?

    • May 2nd, 2017

    Use the override-key option in join parameter, but the key should be of same data type. It will perform as per join type you mentioned

  •  

    Disadvantage of Multi-file against Serial

    What is the disadvantage of using multi-file if data volume is not much?

    Jatin

    • Apr 30th, 2018

    1. When Graph starts there is time taken for start and shut down, so if data in multifile is not much use serial processing as over all time taken will not have any significant difference. 2. If mult...

    Vinit

    • Sep 26th, 2017

    1. In multi files, there can be skew spillage due to imbalance in amount of CPU time
    2. If data is not evenly partition, some of the partition can contain zero records and which will consume memory

  •  

    Abinitio:.air-lock file and .project.pset

    Explain what .air-lock file is?
    What is the difference between .sandbox.pset and .project.pset and the need of .project-start.ksh and .project-end.ksh

    Mahesh

    • May 26th, 2021

    Any changes required only at sandbox level are stored in sandbox.pset.So a parameter value for AI_FILE in project.pset will be overridden by sandbox.pset
    .air-lock as the name suggests is a ab initio repository lock file created when a lock is applied on an object for changes.

    Ashiq Aashu

    • Jun 4th, 2018

    Data from 1 column to be separated in multiple columns

  •  

    Adding delimiters to a file which has no delimiter

    How do I add Delimiter to a file which has text in the below format:
    (There are multiple rows in the file like below row)
    246631balacl1Lavanya Balachandran20120120R7891Unknown-1Unknown

    Munni

    • Sep 17th, 2018

    Read the file using fixed length DML and use delimited DML at the output

    PJ

    • Apr 17th, 2018

    But you havent mentioned where you want to add delimiters in given data

  •  

    Pipeline, Component and Data Parallelism

    Give examples for pipeline, component and data parallelism

    Prasanth

    • Nov 17th, 2020

    Pipeline: If the data is executing component by component is called pipeline parallelism. Remember sort component breaks pipeline parallelism. Component: If different data is executing in differ...

    inamdnik

    • Jul 3rd, 2018

    1. Pipeline Parallelism In pipeline parallelism, multiple components process data simultaneously. Each component in the pipeline continuously reads from upstream components, processes data, and wri...

  •  

    Floor Casting

    Hi Experts,
    I have to write the below floor function in reformat.
    Floor(dp.lcl_Prod_cd/10)
    The source column data type is string as shown {utf8 string("x01") lcl_prod_cd}, here column name is "lcl_Prod_cd ". now i have to apply the floor function on this like "Floor(dp.lcl_Prod_cd/10)". i was tried in different ways like i was changed target dml to decimal and tried as shown below....

    Purva

    • Oct 31st, 2019

    Try using this:
    out.lcl_prod_cd:: floor(decimal(10)in.lcl_prod_cd/10);

    • Jul 4th, 2018

    Hi Maheswari,
    Can you please post the exact error. If it is type casting problem means you should convert input string value to decimal and then to integer, then it will work.

    Let me know if am wrong.

    Thanks,
    Sivaramakrishna

  •  

    How to add header and trailer in a file?

    How to add header and trailer in a file?
    Header - column names
    Trailer - count of the records

    Mahesh

    • May 26th, 2021

    i/p file --> replicate --> 2 out ports -- one with data and secnd connected to rollup with no key and a count() function this gives the trailer record. Bring this flow back to a concat component as...

    Suresh

    • Mar 24th, 2020

    There should be three input files created. one is Header file, second file is Body and the third file is the trailer. you should have three files connected to the concatenate component as inputs and it will produce the o/p file as expected.

  •  

    Load a file in oracle in chunks of 100 mb files

    I need to load a single load ready file in oracle table in chunks of 100 mb files. How to do that?

    Mahesh

    • May 26th, 2021

    The intention here seems for a failure after 100 records, so besides breaking the file into 100 recs each, you can set the commit param to 100

    Anu

    • Jan 9th, 2020

    What I would suggest is

    1. Divide the file into 100 mb small files by using
    Split -b Unix command

    2. Then load the data into the table file by file

  •  

    Fetch Next Record Data

    How can we fetch next record data for a particular field in ab initio?
    i/p
    id sal
    101 500
    102 800
    103 900
    105 200
    o/p
    id sal Next_sal
    101 500 800
    102 800 900
    103 900 200
    105 200 NULL

    Ahmad Ali Quraishi

    • Aug 12th, 2024

    Step 1: Do the rollup on {} key out.id :: accumulation (in.id) out.amt :; accumulation(in.amt) Step 2: Do the normalization Length function Out :: length_of(in.amt) N...

    Nishad P

    • Feb 25th, 2024

    use below flow, i/p -> reformat -> rollup -> normalize -> o/p reformat: add one more column with constant value out.id :: 1; out.* ::in.*; rollup : group the data based on column id created i...

  •  

    Have you used rollup component? Describe how.

    sangee

    • Nov 29th, 2006

    Rollup summarize the group of data records.for eg: if we want the maximum value of the cust_id we will go for rollup.

Showing Questions 201 - 220 of 376 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: