Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to add new line character to a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 125
Location: India

PostPosted: Sat Nov 19, 2011 4:36 pm    Post subject: How to add new line character to a file
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Sat Nov 19, 2011 4:56 pm    Post subject: Reply to: How to add new line character to a file
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

Site Director


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

PostPosted: Sun Nov 20, 2011 12:40 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us