Download and use files from CBT Tape.

Hercules, z390, zCOBOL, CBT Tape Files.
Previous topicNext topic

Topic Author
Vicky Malhotra
New Member
Posts: 5
Joined: Fri Jan 17, 2014 6:57 pm

Download and use files from CBT Tape.

Post by Vicky Malhotra » Wed Sep 03, 2014 11:42 am

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: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: Download and use files from CBT Tape.

Post by Anuj Dhawan » Wed Sep 03, 2014 3:28 pm

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: 1379
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Download and use files from CBT Tape.

Post by Robert Sample » Wed Sep 03, 2014 5:34 pm

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.




Topic Author
Vicky Malhotra
New Member
Posts: 5
Joined: Fri Jan 17, 2014 6:57 pm

Re: Download and use files from CBT Tape.

Post by Vicky Malhotra » Thu Sep 04, 2014 11:40 am

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: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: Download and use files from CBT Tape.

Post by Anuj Dhawan » Thu Sep 04, 2014 1:45 pm

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.

Previous topicNext topic

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