Page 1 of 1

Download and use files from CBT Tape.

Posted: Wed Sep 03, 2014 11:42 am
by Vicky Malhotra
Hello,

As the subject line says - how do I download and use a file from CBT tape? I downloaded an ".XMI" file. However when I upload it to the mainframe the data is not aligned properly. How should I do it all crrectly?

Re: Download and use files from CBT Tape.

Posted: Wed Sep 03, 2014 3:28 pm
by Anuj Dhawan
How do you upload it to mainframes?

In general - you should do a TSO RECEIVE INDATASET(your.mainframe.dataset) and the file will be restored to original format. When prompted, you may specify a new name as DATASET(desired.dsname)

Hope this helps.

Re: Download and use files from CBT Tape.

Posted: Wed Sep 03, 2014 5:34 pm
by Robert Sample
The .XMI file is 80-byte fixed length records. It must be uploaded to the mainframe as a binary file, and you will NOT be able to just look at the uploaded data set to see anything readable. As Anuj said, you must do a RECEIVE to create the actual data set, which will be a PDS. After you have done the RECEIVE, you need to read the PDS member for the installation instructions -- sometimes a program has to be compiled, sometimes a linkage edit / bind has to be done, sometimes a member merely has to be copied to a particular part of the mainframe.

Re: Download and use files from CBT Tape.

Posted: Thu Sep 04, 2014 11:40 am
by Vicky Malhotra
I've used the binary mode while using IND$FILE and issued RECIEVE and it works the way I needed it.

Thanks Anuj and Robert.

Re: Download and use files from CBT Tape.

Posted: Thu Sep 04, 2014 1:45 pm
by Anuj Dhawan
Glad to know that you've got it working! :)