Question

  Asked: Aug 30 2006   11:02 AM GMT
  Asked by: Hervey


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


Mainframe, 390, DB2

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?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter and Database.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

MisterWMQ  |   Aug 31 2006  10:45AM GMT

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.

 

BackRoom  |   Sep 4 2006  1:57AM GMT

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.