.txt File without delimiter

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
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

.txt File without delimiter

Post by BIuser »

How do I load a sequential file(.txt) without delimeter and ommitting the first two rows in that file
-------------------------
https://www.ssa.co.za
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Give us a sample what you want to do and where you see the problem!
Wolfgang Hürter
Amsterdam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? Does 'without delimiter' means a fixed-width file? If so, it's just a matter of a check box and getting the Display sizes correct.

You won't be able to 'omit' the first two records, but you could easily constrain your job to only handle from record 3 onward. For example...

Code: Select all

@INROWNUM > 2
-craig

"You can never have too many knives" -- Logan Nine Fingers
satyanarayana
Participant
Posts: 13
Joined: Fri Jul 15, 2005 12:01 am

Re: .txt File without delimiter

Post by satyanarayana »

Useing SequentialfileStage with Filltercommand(use Unix(HEAD or TAIL) Command to cut first two lines) and deffine single column in metadat(to read file as a single column)
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

head and tail commands would work on a unix box and not on a windoze box, unless MKSToolkit is installed.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply