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
 
Formating output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Jun 15, 2018 3:27 pm    Post subject: Formating output file
Reply with quote

Hi Guys,

I have a input file in the following format:

Code:

MEMBER20-FROM:AsfdfBC@XYZ.COM                       
MEMBER20-TO:DEF@XYZ.COM           
MEMBER20-CC:GasdaHI@XYZ.COM           
MEMBER09-FROM:ABC@XYZ.COM                       
MEMBER09-TO:JFGDGKL@XYZ.COM
MEMBER09-CC:MasdasdadNO@XYZ.COM             
MEMBER09-CC:DasdasdEF@XYZ.COM           
MEMBER09-CC:PQaR@XYZ.COM


The input file is FB of length 100 bytes.

I am trying to format the output as below:
Code:

         FROM            TO          CC
MEMBER20-AsfdfBC@XYZ.COM|DEF@XYZ.COM|GasdaHI.XYZ.COM
MEMBER09-ABC@XYZ.COM    |JFGDGKL@XYZ.COM |MasdasdadNO@XYZ.COM,DasdasdEF@XYZ.COM,PQaR@XYZ.COM



The basic formatting needs to be done on the first 8 characters:.

If any thing in the TO/ CC/ FROM is having more than one entry then they needs to be appended as comma separated. There is no fixed length of the email ID.

Could someone please help me with this.
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1567
Location: Andromeda Galaxy

PostPosted: Fri Jun 15, 2018 3:48 pm    Post subject:
Reply with quote

Check here http://ibmmainframes.com/about58061.html and modify it for your need
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2038
Location: NY,USA

PostPosted: Sat Jun 16, 2018 4:13 am    Post subject:
Reply with quote

Wouldn't it be simpler and flexible to do it in Cobol or any other language program of your comfort ? Why go fancy? Someone else later working on it will find it easy and maintainable if we keep it easy at first place.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2427
Location: @my desk

PostPosted: Sat Jun 16, 2018 11:59 am    Post subject: Reply to: Formating output file
Reply with quote

Niki,

Well, regardless of the programming language you might want to think about how you are going to handle if the 'comma separated CC email ids' is too long to be accommodated in one record. Can you show such an example with the expected output?
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL file declaration jithinraghavan COBOL Programming 2 Fri Nov 16, 2018 10:54 pm
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts Will this code extract 1 byte from fi... pkmurali CLIST & REXX 8 Sat Nov 10, 2018 11:13 pm
No new posts REFORMATTING WITH JFY CLOBBERING OUTP... speermb DFSORT/ICETOOL 12 Thu Nov 08, 2018 7:20 pm
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am

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