|
|
| Author |
Message |
luttapi
New User
Joined: 05 Jun 2007 Posts: 20 Location: kerala
|
|
|
|
Hi,
I want to write the output details into a output file in the following format.
All my output values are available in a two dimetional array REPT.I.J(i 1 to 5, j 1 to 5).
the output report should be in the following format
rept.1.1 rept.1.2 rept.1.3 rept.1.4 rept.1.5
rept.2.1 rept.2.2 rept.2.3 rept.2.4 rept.2.5
rept.3.1 rept.3.2 rept.3.3 rept.3.4 rept.3.5
continues
all output values should be in the centre on of each column....
thanks |
|
| Back to top |
|
 |
References
|
Posted: Tue Jun 03, 2008 9:48 am Post subject: Re: Reporting the output in a specific format |
 |
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2956 Location: Brussels once more ...
|
|
|
|
| Yes ............................ And ??? |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2560 Location: italy
|
|
|
|
here is a rexx snippet... modify according to Your needs
| Code: |
/* fill the input data, just to show */
do i = 1 to 5
do j = 1 to 5
rept.i.j = random()
end
end
/* create the output */
do i = 1 to 5
line =
size = 12
do j = 1 to 5
line = line || " ! " || center(rept.i.j,size)
end
line = line || " ! "
say i line
end
|
|
|
| Back to top |
|
 |
luttapi
New User
Joined: 05 Jun 2007 Posts: 20 Location: kerala
|
|
|
|
| thanks ..... |
|
| Back to top |
|
 |
|
|