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
 

 

Writing in the file in more than one line?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Guru Prasath

New User


Joined: 04 Jun 2008
Posts: 36
Location: Chennai

PostPosted: Thu Aug 06, 2009 2:51 pm    Post subject: Writing in the file in more than one line?
Reply with quote

Hi,

I have declared the my OUTFILE records length as 80. Because this file, which is mailed using SMTP will accept only 80 record length. So when i write my final output in the OUTFILE , it crosses 80 characters. So how should i break the extra character and write those in the new line?

Code:

FILE OUTFILE                     
OUTREC-LINE          1   80    A


Actual sentence i am trying to write is
Code:

THE xxxxxx XXXXXXX OFFICE(XXX) xxxxxxxx XXXXX FILE FOR THE XXXXXXXX JOB XXXXXXXX is empty.


But i am getting the report in my mail as

Code:

THE xxxxxx CENTRAL OFFICE(XXX) xxxxxxxx XXXXX FILE FOR THE XXXXXXXX JOB XXXXXXXX


Output which i am looking for
Code:

THE xxxxxx CENTRAL OFFICE(XXX) xxxxxxxx XXXXX FILE FOR THE XXXXXXXX JOB XXXXXXXX
is empty.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 06, 2009 3:04 pm    Post subject:
Reply with quote

It may be helpful if you told us which CA product you were using.
Back to top
View user's profile Send private message
Guru Prasath

New User


Joined: 04 Jun 2008
Posts: 36
Location: Chennai

PostPosted: Thu Aug 06, 2009 3:07 pm    Post subject: Reply to: Writing in the file in more than one line?
Reply with quote

Sorry EXPAT,

I am using 'CA-EASYTRIEVE PLUS-6.4'.
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: Thu Aug 06, 2009 7:57 pm    Post subject:
Reply with quote

Hello,

Split the data into 2 separate writes. . .
Back to top
View user's profile Send private message
Guru Prasath

New User


Joined: 04 Jun 2008
Posts: 36
Location: Chennai

PostPosted: Fri Aug 07, 2009 10:22 am    Post subject: Reply to: Writing in the file in more than one line?
Reply with quote

Yes Dick,

The idea worked ...I got the expected output in the same line itself after splitting the write.

Thanks,
Guru.
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: Fri Aug 07, 2009 7:09 pm    Post subject: Reply to: Writing in the file in more than one line?
Reply with quote

Good to hear it is working - thanks for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
kumar40322

New User


Joined: 25 Apr 2009
Posts: 15
Location: Hyderabad

PostPosted: Tue Aug 18, 2009 11:41 pm    Post subject:
Reply with quote

Hi,
Let me know the syntax for the above
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 Aug 19, 2009 1:03 am    Post subject:
Reply with quote

Hello,

It is the same syntax as writing one record. . .

It is just issued 2 times with the 2 sets of data.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts splitting a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 11:51 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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