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

Reporting the output in a specific format


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
luttapi

New User


Joined: 05 Jun 2007
Posts: 24
Location: kerala

PostPosted: Tue Jun 03, 2008 9:48 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 03, 2008 11:37 am
Reply with quote

Yes ............................ And ???
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 03, 2008 11:54 am
Reply with quote

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
View user's profile Send private message
luttapi

New User


Joined: 05 Jun 2007
Posts: 24
Location: kerala

PostPosted: Tue Jun 03, 2008 1:09 pm
Reply with quote

thanks .....
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top