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

Extra character appears in file when dataset is extracted


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Balu5491

New User


Joined: 01 Aug 2016
Posts: 14
Location: India

PostPosted: Wed Jul 26, 2017 2:39 pm
Reply with quote

Actual data in the GDG have below data in it.

Code:
*************** Top of Data
0001IA                     
*************************


when i give HEX ON, the below is the result.

Code:
*************** Top of Data **
0001IA                       
FFFFCC67A676476467764444444444
00019194C754053076630000000000
------------------------------


For a space, it should be 40, but this hexadecimal shows there were some character is hidden.

When i try downloading through option 6>filetransfer, i get the extract file as below.

Code:
0001IA¹¾Ô·¿´ ¿³ ·ÀÀ³   


Could any one please explain me what is happening here?

Thanks.

Coded by moderator
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 26, 2017 4:43 pm
Reply with quote

First, when you post data where spacing can be critical, use the Code tag to preserve spacing.

Second, what is happening is that your data set has non-display characters (binary values). When non-display data is transferred as text, the data is converted from EBCDIC to ASCII during the transfer (assuming the data is going to a Unix / Windows machine); this destroys the values since conversions are done byte by byte.

To preserve the values, you have two choices: (1) transfer the data as binary, or (2) convert the non-display data to display data by finding the format of the data set and convert each field from binary to display. If you transfer the data as binary, the Windows or Unix system MUST be able to handle EBCDIC data.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare the file record count percent... DFSORT/ICETOOL 2
No new posts compare two file to find position/dat... SYNCSORT 2
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Capture GDG Dataset Name JCL & VSAM 10
Search our Forums:

Back to Top