Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem when loading file from pc to mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Soundararajan

New User


Joined: 07 Jan 2007
Posts: 13
Location: INDIA

PostPosted: Thu Apr 30, 2009 2:13 pm    Post subject: Problem when loading file from pc to mainframe
Reply with quote

Hi,

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.

Thanks in advance.

Soundar.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Apr 30, 2009 2:21 pm    Post subject:
Reply with quote

Hello,

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.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 30, 2009 2:24 pm    Post subject:
Reply with quote

Can you not use the OPTIONS button from the transfer GUI and set up a new format that will not wrap the data.

It is easy to do, and takes about 30 seconds.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7929
Location: Bellevue, IA

PostPosted: Thu Apr 30, 2009 5:10 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us