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

Writing in the file in more than one line?


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Aug 06, 2009 3:04 pm
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
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

Moderator Emeritus


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

PostPosted: Thu Aug 06, 2009 7:57 pm
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
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

Moderator Emeritus


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

PostPosted: Fri Aug 07, 2009 7:09 pm
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
Reply with quote

Hi,
Let me know the syntax for the above
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: Wed Aug 19, 2009 1:03 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


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