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?
Download and use files from CBT Tape.
-
- Registered Member
- Posts: 11
- Joined: Fri Jan 17, 2014 6:57 pm
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Download and use files from CBT Tape.
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.
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.
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.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Download and use files from CBT Tape.
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.
-
- Registered Member
- Posts: 11
- Joined: Fri Jan 17, 2014 6:57 pm
Re: Download and use files from CBT Tape.
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.
Thanks Anuj and Robert.
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Download and use files from CBT Tape.
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.
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.
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