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: 2411
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 Cobol file using index COBOL Programming 1
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts optim extract file - SAS DB2 2
Search our Forums:

Back to Top