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
 

 

NDM Transfer Problem

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

New User


Joined: 29 Oct 2007
Posts: 7
Location: Tennessee

PostPosted: Tue Nov 10, 2009 3:24 am    Post subject: NDM Transfer Problem
Reply with quote

I'm hoping that someone can help with this.

When tranferring a file from the mainframe to a windows server, the spaces at the end of the record are being coverted. I include an example:
On the mainframe:
YY
EE4444444444444
880000000000000

After the transfer. On the server:

YY

The 'YY' is followed by a tiny square, which I could not figure out how to copy, bit I believe is a carriage return character.


We suspect that using a SYSOPTS='DATATYPE(ACSII)' would send the data correctly. Can someone verify that? And do you have an example that I might use?

Thanks.
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: Tue Nov 10, 2009 3:29 am    Post subject:
Reply with quote

Hello,


It appears as though your system is set up to truncate trailing spaces on the target system.
Back to top
View user's profile Send private message
George Hayes

New User


Joined: 29 Oct 2007
Posts: 7
Location: Tennessee

PostPosted: Tue Nov 10, 2009 7:51 pm    Post subject: Reply to: NDM Transfer Problem
Reply with quote

I neglected to mention that if using the mainframe FTP transfer manually, the file transfers perfectly.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Nov 10, 2009 8:00 pm    Post subject:
Reply with quote

I do not know about NDM but I do know that there is a configuration option for FTP that controls whether or not trailing blanks are sent (TRAILINGBLANS TRUE sends them, TRAILINGBLANKS FALSE does not).

You probably need to consult your site support group about the NDM and FTP configuration options.
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: Tue Nov 10, 2009 8:05 pm    Post subject: Reply to: NDM Transfer Problem
Reply with quote

Did you also set strip.blanks(no) as described in the Process Statement Guide?

Quote:

datatype(text|binary) specifies the type of data contained within the file.
text indicates it is a text file and that trailing blanks will be stripped unless you specify strip.blanks(no). Translation of the data is performed unless you also specify xlate(no). The default is text for all nodes, except Windows nodes.

strip.blanks(yes | no) determines whether trailing blank characters at the end of each record are removed from a line of text before it is written to the Windows text file.

Note: The strip.blanks parameter is ignored when datatype(binary) is specified.

yes removes trailing blank characters. The default is yes.

no does not remove trailing blank characters. The default is no for Windows.

strip.oneable(yes | no) strips ^Z from the end of old DOS files. If this character is not stripped from old DOS files, Connect:Direct Windows translates ^Z into 3F when files are sent to the snode.
yes removes ^Z from the end of old DOS files.
no does not remove ^Z from the end of old DOS files. The default is no.

xlate(no | yes) indicates whether character translation should be performed using the default or user-supplied translation table. Typically, this translation is between ASCII and EBCDIC.

no specifies the translation should not be performed. The default for Windows is no.

yes specifies the translation should be performed.
Back to top
View user's profile Send private message
George Hayes

New User


Joined: 29 Oct 2007
Posts: 7
Location: Tennessee

PostPosted: Wed Nov 11, 2009 2:55 am    Post subject:
Reply with quote

I hope you don't mind, but I have new task, replacing the previous one.

I simply need to add a CR/LF at the end of each record from within my COBOL program. It seems to me that I have done this before, maybe 20 years ago but, I cannot remember how. Can someone tell me how to define a CR/LF at the end of each record?

Thanks.
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: Wed Nov 11, 2009 3:19 am    Post subject:
Reply with quote

Hello,

x'0D0A' is a cr/lf.

You may still have an issue with the trailing blanks.
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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