Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts XML Parse for large file muralikrishnan_new COBOL Programming 3 Mon Jun 12, 2017 12:50 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us