Split file in windows

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kpsita
Participant
Posts: 99
Joined: Tue Jul 21, 2009 11:43 pm

Split file in windows

Post by kpsita »

Hi,

Can anyone please tell me the command to split a file in windows.The file is a .tar file and the size is 12gb.I have to split this to a 2gb file because my user limit for a file is 2gb.

Thanks for you help.
KPSITA
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is no native Windows command for that, however you should have the MKS Toolkit installed and thus access to UNIX commands like split. You can also find utilities people have written for Windows that cut files up, something called 'Chainsaw' springs to mind, but it has been years since I've used it.

Curious, though, what do you plan to do with a hacked up tar file on your Windows server? :?
Last edited by chulett on Tue May 25, 2010 9:43 pm, edited 1 time in total.
-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 »

No can do. While you can split the file into 2GB chunks, each chunk will be irrecoverable. The tar archive must be intact before it can be unpacked.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hence my question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
gaurav_shukla
Participant
Posts: 12
Joined: Wed Jun 13, 2007 2:12 am

Post by gaurav_shukla »

Unpack it and then split it, with tools available in market...
again zip it ..
Tedious but the only one...
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can run the untar command and pipe it to split command. But there will be a risk of breakdown.

Btw, did you check the possibility of RAR files - if all you wanted was to have split compressed files ?
Post Reply