Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 
Reporting the output in a specific format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Reporting the output in a specific format
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: 8593
Location: Back in jolly old England

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10293
Location: italy

PostPosted: Tue Jun 03, 2008 11:54 am    Post subject: Reply to: Reporting the output in a specific format
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    Post subject: Reply to: Reporting the output in a specific format
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Asking you what you do for SMF SCRT r... Alan Playford All Other Mainframe Topics 12 Mon Jul 17, 2017 8:34 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us