Unzip multiple files- DataStage versus UNIX Shell Script

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
suja.somu
Participant
Posts: 79
Joined: Thu Feb 07, 2013 10:51 pm

Unzip multiple files- DataStage versus UNIX Shell Script

Post by suja.somu »

I have a requirement to Unzip multiple files in a directory.

files can be of the type PDF or JPEG or txt or csv.

The count of files in a directory on daily basis may vary and also size of the files may be huge ( hold million of records).


Which is best to use Datastage or Unix Shell script ?

need experts opinion on this...

I would like to know the options available in Datastage
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Write a script and let DataStage execute it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suja.somu
Participant
Posts: 79
Joined: Thu Feb 07, 2013 10:51 pm

Post by suja.somu »

You mean say that the efficient way is to write a UNIX shell script and execute through DataStage
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Unzip is unzip. Assuming you have to loop through multiple files you need a script and there's no reason to not let DataStage schedule/run/monitor that. If it's just one file, skip the script.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Meaning an Execute Command stage in a Sequence job or a Before Job ExecSH in the job that will be loading them.
-craig

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