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

newlines removed when file is copied on OMVS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Leah Dela Cruz

New User


Joined: 27 May 2008
Posts: 13
Location: Philippines

PostPosted: Thu Jul 03, 2014 2:58 pm
Reply with quote

Hello.

I'm trying to transfer an encrypted MVS dataset by copying it on OMVS and send it to remote server using SFTP.

I use the below code to copy the MVS dataset on OMVS.

Code:

//COPYDATA EXEC PGM=IKJEFT01                                 
//INMVS    DD   DISP=SHR,DSN=&FDATA                         
//OUTHFS   DD FILEDATA=BINARY,                               
// PATHOPTS=(OWRONLY,OCREAT),                               
// PATHMODE=(SIRUSR,SIWUSR,SIRGRP,SIWGRP,SIROTH,SIWOTH),     
// PATH='&FPATH'                                             
//SYSTSIN DD *                                               
  OCOPY IND(INMVS) OUTDD(OUTHFS) BINARY                     
/*                                                           
//SYSTSPRT DD SYSOUT=*                                       


Is there a way to retain the newlines that are in the encrypted dataset? When it is copied on OMVS, the newlines are replaced with trailing blanks which causes an error on the remote server side when they try to process the file.

thanks in advance.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jul 03, 2014 6:21 pm
Reply with quote

I have never used OCOPY.... but why do you use the BINARY parameter?
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top