Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Extra character appears in file when dataset is extracted

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

New User


Joined: 01 Aug 2016
Posts: 6
Location: India

PostPosted: Wed Jul 26, 2017 2:39 pm    Post subject: Extra character appears in file when dataset is extracted
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 26, 2017 4:43 pm    Post subject: Reply to: Extra character appears in file when dataset is extracted
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us