IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Data error while sending file to HOST


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 1325
Location: Vilnius, Lithuania

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

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

Global Moderator


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

PostPosted: Wed Oct 19, 2011 3:50 pm
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: 1325
Location: Vilnius, Lithuania

PostPosted: Wed Oct 19, 2011 4:31 pm
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
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: 1325
Location: Vilnius, Lithuania

PostPosted: Thu Oct 20, 2011 9:41 pm
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

Moderator Emeritus


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

PostPosted: Thu Oct 20, 2011 10:18 pm
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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top