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
 

 

Formatting reports using PARSE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Fri Feb 22, 2008 2:50 pm    Post subject: Formatting reports using PARSE
Reply with quote

Can anyone help me with which command to us

My input record looks like this
Code:

BHXUA03 ESP52 BHXUA03 ESP_HCF_STATS 251
CDEDP02 CDE004A CDEDP02 CDE_EVNT 251   
CDEUA02 CDE024A CDEUA02 CDE_CUST_INTM_DATA 251


Output should look like
Code:

BHXUA03   ESP52       BHXUA03  ESP_HCF_STATS           251
CDEDP02   CDE004A  CDEDP02  CDE_EVNT                    251   
CDEUA02   CDE024A  CDEUA02  CDE_CUST_INTM_DATA 251


I'm reading the input statement using PARSE ...... but am confused on how to write it to the output file.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Feb 22, 2008 2:57 pm    Post subject:
Reply with quote

As far as I can see, your input is the same as your output.... icon_rolleyes.gif

O.
Back to top
View user's profile Send private message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Fri Feb 22, 2008 3:02 pm    Post subject:
Reply with quote

Oops .. its getting clumsy while posting

There are 5 different variables in every row. In the output, each variable in every row should start from the same position. Does it help
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: Fri Feb 22, 2008 3:07 pm    Post subject:
Reply with quote

Take a look at the LEFT or RIGHT statements to allow you to assign fixed lengths to variables.
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 Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Formatting data from Excel to mainframe kishpra JCL & VSAM 5 Fri Feb 19, 2016 7:12 pm
No new posts Formatting date in DB2 manugeorge2004 DB2 4 Thu Dec 03, 2015 3:18 am


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