Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7315

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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us