View previous topic :: View next topic
|
Author |
Message |
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The text of the HEADING. Quote, some space to get what you want, then the heading text, then the closing quote. |
|
Back to top |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Thanks Bill , I will try this !! |
|
Back to top |
|
|
|