[SOLVED] Removal of two Spaces at the starting of the rows
Hi
i am having the following code (for illustration purposes):
DEFINE FILE CAR
CAR_DETAILS/A100 = COUNTRY|' '|CAR|' '|MODEL|' '|BODYTYPE;
END
TABLE FILE CAR
PRINT
CAR_DETAILS
BY MODEL
END
-RUN
Now i want to burst this report by "model" and the output I want is a .txt file. But I also don't want the 2 spaces that come in the starting of the row.
I tried using WP format but the spaces are still there. Also reportcaster doesn't allow me to burst the report in CSV or ALPHA formats.
Is there any other format/way through which I can do this?
Thanks in advance SidThis message has been edited. Last edited by: Kerry,
WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP WF Client: 7.1.4 on Windows 2K3 w/Tomcat
December 14, 2009, 05:39 AM
HÃ¥kan
What about this?
APP HOLD REDOR DEFINE FILE CAR CAR_DETAILS/A100 = COUNTRY|' '|CAR|' '|MODEL|' '|BODYTYPE; END TABLE FILE CAR PRINT CAR_DETAILS BY MODEL ON TABLE HOLD FORMAT WP END -RUN -SET &LINE = ' '; APP FI HOLD2 DISK redor/hold2.txt -RUN -:read -READ HOLD &LINE.A102. -IF &IORETURN NE 0 GOTO :endread; -SET &LINE2 = SUBSTR(&LINE.LENGTH,&LINE,3,102,100,'A100'); -WRITE HOLD2 &LINE2 -GOTO :read -:endread -RUN
WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP WF Client: 7.1.4 on Windows 2K3 w/Tomcat
December 15, 2009, 08:09 AM
Tony A
quote:
Also reportcaster doesn't allow me to burst the report in CSV or ALPHA
Then don't use report caster, use something that will allow you to send emails with attachments in the format that you want, such as CDONTS.
Don't ask for examples though because then we'll know that you don't search for stuff (hint) and just wait for someone to do the work for you!
Of course, if you want to have consultancy then my rates are reasonable (although Francis is bound to say he's cheaper )
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
December 16, 2009, 02:00 AM
sidney_jec
quote:
Originally posted by Tony A: [QUOTE] Don't ask for examples though because then we'll know that you don't search for stuff (hint) and just wait for someone to do the work for you!
Of course, if you want to have consultancy then my rates are reasonable (although Francis is bound to say he's cheaper )
T
FIRST OF ALL THANKS FOR THE SUGGESTION..
your second thing though doesn't make sense. see i had told you the constraints in the beginning itself that I have to use bursting AND I have to use report caster as well. I tried everything possible with the current version of Webfocus. Plus I never asked for a hint. Rather I had asked for a solution itself. and these are what this forum basically is in the very first place..or isn't it??
Now I had tried everything possible and couldn't get to a solution thats why I had put up the query here..
try and search for the particular topic I have posted. If you don't have a solution don't reply..thats it..as simple as that.. but then again you can reply (oh yes i know you don't need my freakin permission)..we are no autocrats here right
PS: I am now using a Perl script to remove the spaces from all the files.