I have a source like file it have Number of records and i want to load without first and last records in target?Datastage?
Answers were Sorted based on User's Feedback
Answer / shivam
For this we can use Head and tail stages from development
and debug stages. Suppose we have 10 records,And we are
asked to pick 2nd to 9th record in the output, then go for
the following:
Sequential file--->Head stage--->Tail stage---->Data set
In the Head stage properties mention the number of records
you want to extract 9 records, this way you will get 1st to
9th records(top 9) extracted. Now, in Tail stage properties
mention number of records to extract 8, this way you get
last 8 records out of top 9 i.e 2nd to 9th. Finally as an
output you will find records 1st and 10th dropped.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / prasad
In seq file, we have filter option (datastage)
filter= sed '1d;$d'
In Unix= sed '1d;$d' File_Name
it will remove header and footer records(quotes must and should)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / prabhu
we use seq file
in that stage properties->options->filter in that SED'2,$!P' FILENMAE
IT ISWORKING
| Is This Answer Correct ? | 0 Yes | 2 No |
Difference between the Sequence and Sequencer in DS?
there are indexes on a table as index1 with col1, col2 index2 with col2 index3 with col1,col2,col3. if i run a query with col1='100' which index will be used and why
can we see the data in fixed width file? how can u change the datatype of fixed width files?
1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only? How to write the sql query? 3)i have 40 rows,i want to display last row? write sql query?
I have Seq file, I don't want 10, 11th(or any two records like 20, 30th records ) records in the output
How to write a left outer join condition by using Transformer stage in server jobs? Could any one help me?
What are the different types of lookups in datastage?
how to sort two columns in single job in datastage.
Source have 1000 records and it can have three nodes ok but i want how many records are executed on each node?
Which type of joins Merge stage can support?
how to identifie,is it innerjoin,leftouter join in lookup?
how to unlock a locked job in datastage 8.0