I have one text file which contains lot of records of 1000 bytes each. Need to load into mainframe. The emulator we are using is Passport. I used option 6 to load into mainframe. I can able to load into mainframe, but in mainframe I am getting un-necessary spaces in between every character and also its wraping after every 251 bytes( In notepad I removed wordwrap option, still facing problem). Could anyone help on this.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Wordwrap in notepad merely changes the view of the data on the pc screen. It does not modify the format.
Suggest you pre-allocate a mainframe file of the proper dcb info and then ftp your pc text file into that pre-allocated mainframe file.
Then look at the content and let us know what happened. Post part of a problem record from the pc as well as the same record in hex on the mainframe using the Code tag and explain what problem(s) exist in the mainframe file from the posted example.
It sounds like the file is being treated as Unicode -- I've seen double byte characters being generated when such a file is transferred to the mainframe.
The z/OS default, typically, if you don't preallocate a file or provide the DCB during the file transfer is to allocate the file as variable blocked, 255 record length. Subtract four for the record descriptor word and there's 251 bytes for data in each record.