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: 154
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: 7311
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: 154
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: 7311
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: 154
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 compare two file to find position/dat... SYNCSORT 2
No new posts Easytrieve EZABX007 with error code 0... CA Products 7
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
No new posts Position BSAM file on multi volume PL/I & Assembler 3
No new posts Outrec IFTHEN builds data in wrong po... DFSORT/ICETOOL 6
Search our Forums:

Back to Top