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

Adjust Heading Position in Easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Mon Dec 21, 2015 3:26 pm
Reply with quote

Hi All,

Need help on Easytrieve. I tried looking in Docs but could not find the needfull


I am writing a report where I have print some data by column headings , I want to align the headings with the start position of data but Headings are not printed as desired , I tried usinig COL option in LINE but did not work

My Report is like below


Code:
12/21/15 MINOR/SPECIAL TITLE DAILY MAINTENANCE REPORT 
                                                       
    ACCOUNT NUM      DATE OF CHNG          DESC OF FLD
0052871320             20151219   COSIGN FIRST NAME   
0052871320             20151219   COSIGN LAST NAME     
0052871320             20151219   DEBTOR BIRTHDATE     
0052871320             20151219   DEBTOR FISRT NAME   


The Account number and desc of change ia snot alligned with data.

Can some one pleaae let me know the way to do it , I used NOADJUST and NOSPREAD option as well but no luck.

Below is my report definition

Code:
*-----------------------------------------------------------------     
* DETAIL REPORT DEFINITION ,CONTROL ,SEQUENCE AND LINE DISPLAY         
*-----------------------------------------------------------------     
                                                                       
REPORT DETRPT PRINTER ACTRPT -                                         
       LINESIZE(179)  SPACE (1) PAGESIZE(58) NOADJUST                   
                                                                       
*-----------------------------------------------------------------     
* SEQUENCE TO BE DISPLAY ON THE REPORT                                 
*-----------------------------------------------------------------     
                                                                       
SEQUENCE FIELD1         +                                         
           FIELD2         +         
           FIELD3         +                                         
           FIELD4         + 
           FIELD5         +                                         
           FIELD6                                         

*-----------------------------------------------------------------     
* TITLE TO BE DISPLAYED ON THE REPORT                                   
*-----------------------------------------------------------------     
                                                                       
TITLE 1 '         MINOR/SPECIAL TITLE DAILY MAINTENANCE REPORT'         
                                                                       
*-----------------------------------------------------------------     
* HEADING OF THE FIELDS TO BE DISPLAYED ON THE REPORT                   
*-----------------------------------------------------------------     
                                                                       
HEADING FIELD1             ('ACCOUNT NUM')                           
HEADING Date                  ('DATE OF CHNG')                         
HEADING Desc                   ('DESC OF FLD')                           
HEADING OLD-VALUE          ('OLD VALUE')                           
HEADING WS-NEW-VALUE-R    ('NEW VALUE')                             
HEADING WS-USER-ID            ('USER ID')                               
HEADING WS-CHEX-$VAL          ('CHEX C/O $')                           
HEADING ACCONT-TITLEMSA-USER-DEF-81       ('ACCT TTL')                             

*-----------------------------------------------------------------     
* LINE VALUES ORDER TO BE DISPLAY  ON THE REPORT                       
*-----------------------------------------------------------------     
                                                                       
LINE 1  FIELD1         +                                         
           FIELD2         +         
           FIELD3         +                                         
           FIELD4         + 
           FIELD5         +                                         
           FIELD6                                         
                                       
*-----------------------------------------------------------------     
* END OF THE PROGRAM                                                   
*-----------------------------------------------------------------     
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Dec 21, 2015 4:46 pm
Reply with quote

The data-names you have given headings for don't match the names on the LINE statement.

What alignment do you want? You can use COL for the nutty case where you need to get everything in some "right" position.

Personally I'd use SPREAD and if anything looks wildly odd, left-pad the HEADING values.
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Tue Dec 22, 2015 11:39 am
Reply with quote

Thanks Bill for your reply !!

When we say Left PAD the headings , does it mean put some spaces withing the single quotes and then heading name?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Dec 22, 2015 1:26 pm
Reply with quote

The text of the HEADING. Quote, some space to get what you want, then the heading text, then the closing quote.
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Tue Dec 22, 2015 2:18 pm
Reply with quote

Thanks Bill , I will try this !!
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts compare two file to find position/dat... SYNCSORT 2
Search our Forums:

Back to Top