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
 
How to implement delimiter for summary record in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
sureshbabu.jv

New User


Joined: 11 Apr 2006
Posts: 41
Location: Chennai

PostPosted: Tue Nov 12, 2013 5:53 pm    Post subject: How to implement delimiter for summary record in Easytrieve
Reply with quote

I have written a new easytrieve program to create the summary report with ',' delimiter .The data is coming fine and getting the ',' delimiter for the line/header records but not coming for the Last summary record.Due to this summary record was not correctly formatted in the excel.

Please let me know if we can implement delimiter for the summary record also else I have to use SORT card to put the delimiter that I do not want.

Thanks,
Suresh
Back to top
View user's profile Send private message

Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Tue Nov 12, 2013 6:29 pm    Post subject: Reply to: How to implement delimiter for summary record in E
Reply with quote

Hi Sureshbabu,

Could you please provide an easy example with the current input file and output file and your expected output for better understanding of your issue.
Back to top
View user's profile Send private message
sureshbabu.jv

New User


Joined: 11 Apr 2006
Posts: 41
Location: Chennai

PostPosted: Wed Nov 13, 2013 6:48 am    Post subject: Re: Reply to: How to implement delimiter for summary record
Reply with quote

Input file have the below date. Last record is detail copy/summary record.It will be created by easytreive SEQUENCE.CONTROL statements.

Code:
DLR Number ,Principal ,Shares ,Trans Code ,
",="0111   ",100 ",   "5 ",="ABC",
",="0111   ",200 ",   "10 ",="cDF",
    0111     300       15


I have used the delimter to get the data in CSV format and it's coming fine for header and line records but not for last summary record as it was created by easytreive prgoram. Not sure how we can add the delimter within the program instead using extertnal sort insert the delimter.

Code'd
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Wed Nov 13, 2013 12:49 pm    Post subject: Reply to: How to implement delimiter for summary record in E
Reply with quote

Having not shown the code for the REPORT:

Have a look at CONTROL .. NOPRINT. That will stop Easytrieve Plus printing the total.

Then you need a report procedure. BEFORE-BREAK or AFTER-BREAK will do, since you've turned off the printing. In that PROC you put a DISPLAY statement naming the fields you want to print, and any other literals.

You'll probably need your manual if you have not used report procedures before, but they are simple to use.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

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