source file contains 100 records, i want 10 records in
target file how it possible in datastage
Answer Posted / vamsi
take source --->trf---->trg
in transformer constaints put inrownum <=10
then u can get the required answer.........
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is active and passive stage?
Explain Quality stage?
Does datastage support slowly changing dimensions ?
What is process model?
How a source file is populated?
how to export or import the jobs in .ISX file
DB2 connector> transformer > sequential file Data will be exported into a csv format in a sequential file. This file will be send in a email using a sequence job. Problem here is, how to avoid sending a blank csv file? When I ran the job there are chances that it might return zero records but in the sequence job csv file is going blank. how can I avoid this? thanks
How do you import and export the datastage jobs?
Can you explain kafka connector?
how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)
what is the use of surogate key in datastage
How many Key we can define in remove duplicate stage?
How to reverse the string using SQL?
how do u catch bad rows from OCI stage? And what CLI stands for?
create a job that splits the data in the Jobs.txt file into
four output files. You will direct the data to the
different output files using constraints. • Job name:
JobLevels
• Source file: Jobs.txt
• Target file 1: LowLevelJobs.txt
− min_lvl between 0 and 25 inclusive.
− Same column types and headings as Jobs.txt.
− Include column names in the first line of the output file.
− Job description column should be preceded by the
string “Job
Title:” and embedded within square brackets. For example, if
the job description is “Designer”, the derived value
is: “Job
Title: [Designer]”.
• Target file 2: MidLevelJobs.txt
− min_lvl between 26 and 100 inclusive.
− Same format and derivations as Target file 1.
• Target file 3: HighLevelJobs.txt
− min_lvl between 101 and 500 inclusive.
− Same format and derivations as Target file 1.
• Rejects file: JobRejects.txt
− min_lvl is out of range, i.e., below 0 or above 500.
− This file has only two columns: job_id and reject_desc.
− reject_desc is a variable-length text field, maximum
length
100. It should contain a string of the form: “Level out of
range: