Compare values with File name

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
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Compare values with File name

Post by satheesh_color »

Hai,


One small doubt.I have a sequential file which contains Date and terminal id:

20060825,00001234

20060409,00002345 like this



I my unix inbox folder contains the following files:


ras.dltx.postrn.20060725.070547.00001234

ras.dltx.postrn.20060409.070547.00002345

ras.dltx.postrn.20060719.070547.00002973



I have to compare the sequential file date and terminal id with the above filenames(ras.dltx.postrn.20060725.070547.00001234
).If the file name contains the seq.file date and terminal id then i have to move the file to another folder otherwise no need.How to achieve this.Kindly give me your suggestions.

Regards,
Satheesh.R
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

This is a duplicate post. If you'd like to respond to it, please do so in this one instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply