IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Easytrieve - Dynamically change the Header


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 01, 2008 7:27 pm
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
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
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

Moderator Emeritus


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

PostPosted: Sat Oct 11, 2008 2:46 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Dynamically pass table name to a sele... DB2 2
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
Search our Forums:

Back to Top