source file contains 100 records, i want 10 records in
target file how it possible in datastage
Answer Posted / snehasis
By using read first rows option in sequential file stage we can get 10 records out of 100 records of a file
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Lookup constraints
1)what is the size of Fact table and dimension table? 2)how to find the size of Fact table and dimension table? 3)how to implement the surrogate key in transform stage? 4)write the configuration file path? 5)how many types of datasets explain? 6)diff b/w developed projects and migration projects? 7)how to delete the header and footer file of the sequencer file? 8)how can u call the parameters in DS in unix environment? 9) how much data ur getting daily ? 10)
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:
What is the difference between an operational datastage and a data warehouse?
How do you reject records in a transformer?
Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?
What is difference between server jobs & parallel jobs?
Explain the situation where you have applied SCD in your project?
If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?
What is datastage engine?
hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys
What is the difference between odbc and drs stage?
how to implement scd2 in datastage 7.5 with lookup stage
How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?
What are the different plug-ins stages used in your projects?