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
 

 

Transfer of data from UNIX to MAINFRAME

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

Active User


Joined: 17 Nov 2009
Posts: 122
Location: India

PostPosted: Mon Oct 24, 2011 2:44 pm    Post subject: Transfer of data from UNIX to MAINFRAME
Reply with quote

Hi

When my job gets a file by c:n all records are getting a trailing low-value character(ne line character) from unix. By which C:N option can we stop these new line character .
Please help.

Thanks,
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8002
Location: Bellevue, IA

PostPosted: Mon Oct 24, 2011 4:21 pm    Post subject:
Reply with quote

Have you looked at the documentation for c:n (whatever THAT is)? You should start with the product documentation.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Oct 24, 2011 7:02 pm    Post subject:
Reply with quote

Transfer of data from UNIX to MAINFRAME using C:N
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7308

PostPosted: Mon Oct 24, 2011 8:02 pm    Post subject: Reply to: Transfer of data from UNIX to MAINFRAME
Reply with quote

Even in English the only thing is this thread. Site specific (or typo).
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: Mon Oct 24, 2011 8:51 pm    Post subject:
Reply with quote

Hello,

A "low-value" is not a newline character as far as i know. . .

What is C:N? Who is the vendor. What does this connect to on the mainframe or is this a mainframe product? Is the data being "pushed" by the unix system or "pulled" by the mainframe?

The better info you provide, the more someone can help.
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: Mon Oct 24, 2011 9:21 pm    Post subject: Reply to: Transfer of data from UNIX to MAINFRAME
Reply with quote

All I can comment on is that I hope the TS realizes that data is stored in different manners on different machines. I'd hope that his site's data transmission team would know this and could help with this issue.

On Unix machines, text data is stored in ASCII with just a single carriage-return (x'0d') to mark the end of each record. In the world of Windows/Mac, text data is stored in ASCII with a carriage-return/line-feed paid (x'0d0a') to mark the end of each record. This is usually referred to as either the "PC" or "DOS" format. The mainframe stores data in EBCDIC. When transferring ASCII-based text files to the mainframe, the mainframe needs to know how long a record is so it can be properly stored. To accomplish this, the mainframe requires the full carriage-return/line-feed specification (i.e. the DOS or PC format).

For any shop with a variety of server types, it's best to mandate that only the "DOS" or "PC" format will be supported for transmission.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon Oct 24, 2011 11:20 pm    Post subject:
Reply with quote

If your receiving file is pre-allocated, I'd bet it is one byte too long.

In some parts of the Unix world, null (x'00') is used as a string terminator. So it's possible the file is 100 bytes on the Unix side, but 101 bytes on the mainframe side.

Are you also getting and extra line at the bottom, with only a x'3F' in the first byte?
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


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