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: 1558
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: 1942
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: 2372
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 How to manage VSAM file update confli... ocjohnh JCL & VSAM 2 Sat Jul 21, 2018 6:04 am
No new posts Need Help to Create 4 Output Records ... satish.ms10 DFSORT/ICETOOL 4 Thu Jul 19, 2018 1:55 am
No new posts finding anydata between positions of ... ram_vizag SYNCSORT 13 Tue Jul 17, 2018 9:14 pm
No new posts KSDS file fields update by passing va... Anil Kumar Prajapati TSO/ISPF 5 Wed Jul 11, 2018 5:59 am
No new posts Comparing inside same file vickey_dw DFSORT/ICETOOL 2 Tue Jul 10, 2018 9:51 pm

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