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
 

 

Data error while sending file to HOST

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
chandrupegasus
Warnings : 1

New User


Joined: 16 Jan 2007
Posts: 11
Location: Bangalore

PostPosted: Wed Oct 19, 2011 3:04 pm    Post subject: Data error while sending file to HOST
Reply with quote

Hi,

I have a problem while uploading a notepad doc into mainframe PS file. The uploading is happening successfully but for each character one space is there. one more thing after the data uploaded I could see the below statement in the file. I have given one transaction as sample here. can you pls help me on this?.

Sample Transaction:

Data in Notepad as below
101 67214211111103220010A094101

After data uploaded into mainframe PS file as below:
"PRESERVE ON" IN EFFECT. TRAILING BLANKS WILL NOT BE TRUNCATED.
1 0 1 6 7 2 1 4 2 1 1 1 1 1 1 0 3 2 2 0 0 1 0 A 0 9 4 1 0 1
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1002
Location: Oostende, Belgium

PostPosted: Wed Oct 19, 2011 3:10 pm    Post subject:
Reply with quote

Three words: UNICODE
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Oct 19, 2011 3:50 pm    Post subject: Reply to: Data error while sending file to HOST
Reply with quote

Could you show us what the data looks like, in HEX, from the ASCII machine, before you transmit it? A few records worth of data should suffice.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1002
Location: Oostende, Belgium

PostPosted: Wed Oct 19, 2011 4:31 pm    Post subject:
Reply with quote

Quite likely like:

Code:
31 00 30 00 31 00 20 00 36 00 37 00 32 00 31 00 34 00 32 00 31 00 31 00 31 00 31 00 31 00 31 00 30 00 33 00 32 00 32 00 30 00 30 00 31 00 30 00 41 00 30 00 39 00 34 00 31 00 30 00 31 00


Again: UNICODE (without BOM) - tried it myself...
Back to top
View user's profile Send private message
chandrupegasus
Warnings : 1

New User


Joined: 16 Jan 2007
Posts: 11
Location: Bangalore

PostPosted: Thu Oct 20, 2011 9:33 pm    Post subject: Its working fine
Reply with quote

Thanks to all, Now its working fine. The issue was, the notepad has transactions with different record length, I tried to upload the notepad nto a Variable length PS file. Now Its uploading properly. But still I couldn't find out the reason for the " PRESERVE ON" IN EFFECT. TRAILING BLANKS WILL NOT BE TRUNCATED ". If you get any info reg this, I requets you to provide me.
Thanks for your immediate response.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1002
Location: Oostende, Belgium

PostPosted: Thu Oct 20, 2011 9:41 pm    Post subject:
Reply with quote

You are lying and spouting utter bullsith!

I've uploaded many PC files (which are by definition VB) to z/OS and have never come across this issue.

BTW, what are "transactions" in notepad???????

As for giving you an immediate response? My most immediate one would be removed by the moderators.
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 Oct 20, 2011 10:18 pm    Post subject:
Reply with quote

Hello,

Suggest you talk with your support people and see if PRESERVE ON is the default for your system. Have you tried setting PRESERVE OFF?

What you are seeing is in the editor. This is not necessarily what was actually sent in the file transfer. . .

Edit some member and type PRESERVE SPACE in the command area (this is an error intentionally). Press F1 two times to see how PRESERVE works for variable length data.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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