Uploading a file from a USB up to Mainframe & re-generating a PDS

pts.
Tags:
390
IBM DB2
Mainframe
I created a flat file from a PDS using IEBCOPY, downloaded that flat file to hardrive and subsequently copied to a flash drive. Now, I'm trying to upload this file & re-create the PDS that it originally came from but am getting errors: "wrong length record" Have tried uploading to various record lengths and record formats combinations but can't seem to get nowhere. Does anybody have any idea how to upload & re-generate a library?

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you’re trying to upload to a flat file that already exist the system won’t override it automatically. You have to delete the flat file before uploading if you changed the record length.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • MisterWMQ
    You can also use the TSO SEND/RECEIVE commands to move the entire PDS. My company uses this method to distribute our mainframe agents via cd. Use the TSO SEND command to create a flat file containing the unloaded pds. Use FTP to move this file as a BIN or IMAGE file. Run TSO RECEIVE in a batch job or interactively to unload and recreate the pds.
    0 pointsBadges:
    report
  • BackRoom
    IEBCOPY creates a Variable Blocked dataset from a PDS, when you transfer that to a PC, you loose the RDW and then when transferring it back to the host it becomes VB with a record length of 255, which is incorrect. Basically this is not the way to tranfer a PDS via PC, use TSO XMIT/RECEIVE is creates a FB dataset with lrecl=80, which is usable. Remember when uploading to set the lrecl to 80, so RECEIVE can make it a PDS agaian.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following