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

How to add new line character to a file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Sat Nov 19, 2011 4:36 pm
Reply with quote

Hi

I have a JCL job that used to send files to widows server .
Now the destination server is changed to unix server.
In our test region when we try to send files, in UNIX files are appearing with having just a single record.

Just came to know that we need to provide a line feed for each record in input dataset.

As the i/p dataset is of variable structure how can increase the lrecl with an extra line feed byte? We do not know the i/p file is VB or Fb and also dont know the LRECL.


Please help.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Nov 19, 2011 4:56 pm
Reply with quote

Can you show the JCL that you are using and the control cards for it. Usually the method of transfer takes care of the adding/stripping (depending on direction) of things like cr/lf. You might want to start checking your documentation/looking at any examples which already work, look at the "migration notes" which were circulated by your technical people when the Windows was replaced with Unix....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Nov 20, 2011 12:40 am
Reply with quote

Hello,

As suggested you should post the jcl and ftp control statements used as well as the informatoinal output generated by the run.

When you say "opne record" do you mean that only the first logical record is transmitted or that the entire file is sent as one single record?

It is possible that your site options have a NOCRLF default. You can tell ftp to add a cr/lf.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top