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: 2166
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: 2481
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 Access file which has DSNTYPE=LIBRARY maxsubrat JCL & VSAM 11 Fri Jun 21, 2019 4:09 pm
No new posts Mainframe to linux file count mismatch shreya19 All Other Mainframe Topics 4 Thu Jun 13, 2019 9:49 pm
No new posts Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts SDSF REXX for DB2 command output vasanthz CLIST & REXX 2 Thu Apr 25, 2019 11:29 pm
No new posts How can I close a flat file in Ezytrieve dibyendumandal11111 CA Products 3 Wed Apr 17, 2019 2:19 pm

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