Download and use files from CBT Tape.

Hercules, z390, zCOBOL, CBT Tape Files.
Post Reply
Vicky Malhotra
Registered Member
Posts: 11
Joined: Fri Jan 17, 2014 6:57 pm

Download and use files from CBT Tape.

Post 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?
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Download and use files from CBT Tape.

Post 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.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Download and use files from CBT Tape.

Post 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.
Vicky Malhotra
Registered Member
Posts: 11
Joined: Fri Jan 17, 2014 6:57 pm

Re: Download and use files from CBT Tape.

Post 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.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Download and use files from CBT Tape.

Post by Anuj Dhawan »

Glad to know that you've got it working! :)
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Hercules, z390, zCOBOL, CBT Tape Files.”