filter command in sequentiak file stage

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
mail2hfz
Premium Member
Premium Member
Posts: 92
Joined: Thu Nov 16, 2006 8:51 am

filter command in sequentiak file stage

Post by mail2hfz »

Hi,
using filter command in sequential file stage,I tried to count the no of records in 5 files whose names slightly differs...
for instance aud_d_13,aud_d_14,aud_d_15...I used wc -l aud_d_*...it throws error..Cant we use * to read multiple file using filter command..please advice
satya99
Participant
Posts: 104
Joined: Thu Nov 30, 2006 1:22 pm

Post by satya99 »

wc -l aud_d_[13,14,15]
satya
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: filter command in sequentiak file stage

Post by chulett »

mail2hfz wrote:I used wc -l aud_d_*...it throws error..Cant we use * to read multiple file using filter command..please advice
No. While I believe you should be able to, it doesn't seem to work.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Does

Code: Select all

ls -1 aud_d-* | wc -l
work?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply