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
 

 

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: 5
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: 8132
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 Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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