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
 

 

Easytrieve - Dynamically change the Header

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

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Wed Oct 01, 2008 10:31 am    Post subject: Easytrieve - Dynamically change the Header
Reply with quote

Hi,

Please can anyone have a look into this,
I just want to Dynamically populate the Header for a specific field, while creating the report.

For example :
If i get the file from source 1, then the first field in the header should be

FLD11111 FLDA FLDB FLDC FLDD

If the file from source 2, then it should be

FLD22222 FLDA FLDB FLDC FLDD

The data used to display in both the Report lines are same, Only have to differentiate the Field Heading FLD11111 or FLD22222.

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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Oct 01, 2008 7:27 pm    Post subject:
Reply with quote

Hello,

Please post your report definition as well as the code that relates to the fields on the report. Also please post an example of the "real" report (something more descriptive than flda, fldb, etc.).
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Fri Oct 03, 2008 10:41 am    Post subject: Reply to: Easytrieve - Dynamically change the Header
Reply with quote

Hi cvadlamudi,
Declare a working storage
For eg; WS-FILED1 8 A
then If you get the file from source 1, then move the FLD11111 to first field in the header.

I hope it should work.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Thu Oct 09, 2008 2:13 pm    Post subject:
Reply with quote

Hi Dick,

Please find the below details to display the report.

.
IN-TRANS01 11 8 A HEADING('PROCESSED' 'XXX MONTH')
IN-AMT 19 7 N 2 HEADING('TRANSACTION' 'AMT')
.
.


REPORT RPTA LINESIZE 132
SEQUENCE IN-TRANS01
CONTROL IN-TRANS01 NEWPAGE
TITLE 1 'PROCESSED TRANSACTIONS'
LINE 1 IN-TRANS01 IN-AMT

As per the above code the report will look as
-------------------------------------------------------------------
PROCESSED TRANSACTION

PROCESSED TRANSACTION
XXX MONTH AMT
0001 777.88
0001 879.99
-------------------------------------------------------------------
PROCESSED TRANSACTION

PROCESSED TRANSACTION
XXX MONTH AMT
0002 777.88
0002 879.99
-------------------------------------------------------------------


The XXX should be dynamically changed
If 0001 then 'JAN'
If 0002 then 'FEB'
If 0003 then 'MAR'
.
.

Hope the inputs will help.

Thanks,
Mouli
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Oct 11, 2008 2:46 am    Post subject:
Reply with quote

Hello,

You can use a "field-name" in the TITLE. Just create a field and in the code move the appropriate month abbreviation to the field.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


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