×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Monthly Auto-update Report Headings

Monthly Auto-update Report Headings

Monthly Auto-update Report Headings

(OP)
I was wondering if it's possible to get the headings in WebFOCUS to automatically update each month to reflect the month that it is representing?

For example, the headings are July X, July Y, and next month, they should be August X, August Y.

I'm reading the records from an Excel sheet, so I thought it might have been possible to add in an extra column in the data block, with the month displayed in it (so an extra column by the name of Month that displays July's or August's), and then in the Editor, display the headings thus:

Table File XXXX
Print Results as 'Results in ' <Month>
by whatever

But that doesn't work. Does anyone have any suggestions?
Thanks in advance. ^_^

RE: Monthly Auto-update Report Headings

I'm assuming that the month you want displayed is the 'current' month. If that's true, you can use the Dialogue Manager to get the name of the current month, and insert it into each 'AS' phrase. Here's a sample of code, which should give you what you need:

-SET &THISMONTH = CHGDAT('YMD  ','MX   ',&YMD,'A9');

This uses the CHGDAT routine to transform today's date (&YMD) in YYMMDD format, into the month name (expanded). The format of 'A9' allows for the longest month name (SEPTEMBER).

In my request, I use this variable as follows:

PRINT COUNTRY AS 'COUNTRY, FOR,&THISMONTH'

When executed, the value returned into &THISMONTH is substituted into the AS phrase.

                           

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close