View previous topic :: View next topic
|
Author |
Message |
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It may be helpful if you told us which CA product you were using. |
|
Back to top |
|
|
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Sorry EXPAT,
I am using 'CA-EASYTRIEVE PLUS-6.4'. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Split the data into 2 separate writes. . . |
|
Back to top |
|
|
Guru Prasath
New User
Joined: 04 Jun 2008 Posts: 36 Location: Chennai
|
|
|
|
Yes Dick,
The idea worked ...I got the expected output in the same line itself after splitting the write.
Thanks,
Guru. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thanks for letting us know
d |
|
Back to top |
|
|
kumar40322
New User
Joined: 25 Apr 2009 Posts: 15 Location: Hyderabad
|
|
|
|
Hi,
Let me know the syntax for the above |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|