FlatFile header and footer suggestion

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

FlatFile header and footer suggestion

Post by myukassign »

I would like to do get an idea regarding reading a flat file.

My requirement is , I have a source flatfile.

I want only the first line and last line of that source file to be transferred to another file.

Wht is the best method to implement that?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

filter and use "head -1" and "tail -1".
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

To be frank I did not understood your statment.

Will you please explain more about it?

What is filter and where should i use head -1 tail -1
myukassign
Premium Member
Premium Member
Posts: 238
Joined: Fri Jul 25, 2008 8:55 am

Post by myukassign »

Oops i got it

Filter command in txt file

:)

Thanks a lot..

Topic resolved
Post Reply