[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ilbbak::us_sales_service

Title:US_SALES_SERVICE
Notice:Please register in note 2; DVNs in note 31
Moderator:MCIS3::JDAIGNEAULT
Created:Thu May 16 1991
Last Modified:Tue Sep 03 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:226
Total number of notes:1486

6.0. "Procedure to extract notes automatically" by USEM::CHERNACK (The Agony of Delete) Thu May 16 1991 19:22

Many of you have contacted me about an automated procedure for reading 
topics in the US_SALES_SERVICE conference.  I know that there are many 
routines in the Company that read note files.  Here is one that I have 
used.  If you have your own routine and would like to share it, please 
feel free to add it to this topic.

Since we seem to have time to read mail, but maybe not enough time to 
read Notes, here is a routine that will send you new US_SALES_SERVICE 
conference activity as a mail message.

It also shows what you have to do to add other conferences that you would 
like to receive recent entries from automatically.

There are two procedures:

    1.  The first procedure controls whether you have already read the
    notes   file today and submits the job to extract the new notes only on
    the first  login of the day.  You will add it to your LOGIN.COM.

    2.  The second procedure does the actual extracting of unseen activity 
    from the US_SALES_SERVICES Conference (and others).  It requires that
    YOU supply  your nodename and username in the statement that mails you
    the notes  extract.  You will edit NOTES_EXTRACT.COM with your VAXmail
    or A1mail  (VAXmail format) address.

Please note, before executing this process for the first time, check to 
make sure that you have added a reference to the US_SALES_SERVICE notes
conference and review your Notes profile.

If you do not have a reference to the US_SALES_SERVICES conference, please 
issue the following commands:

NOTES
ADD ENTRY GERBIL::US_SALES_SERVICE

Please issue the following command so that nothing will happen upon 
opening the notes file:

SET PROFILE/NOAUTOMATIC

And now you are in business!

When you log into your account for the first time each day, you will 
notice that 'Job NOTES_EXTRACT started.... ' message will appear on your 
monitor.

Finally, these procedures are only a starting point.  You can change the 
name of the second procedure, move it from your default directory, read 
more notes files and leave the extracts on disk rather than mailing them 
to you, while mailing yourself a notification that the extract is 
complete.  There are many possibilities for you to use.

Procedure number 1 will be base note +1.  Please add it to your LOGIN.COM 
file or another file that is executed when logging in.

Procedure number 2 will be base note +2.  Please put it in your default 
login directory with the name of NOTES_EXTRACT.COM.  Please edit the mail 
address embedded within this file with YOUR VAXmail or A1mail (VAXmail 
format) address.

If you have any questions, I am available for phone and house calls!

Have fun .....
    
T.RTitleUserPersonal
Name
DateLines
6.1Procedure 1: Check dates..... for your LOGIN.COMUSEM::CHERNACKThe Agony of DeleteThu May 16 1991 19:2320
$!
$!  This procedure is expected to be in your LOGIN.COM
$!    Revision history:  04/7/91   Ken Chernack, ACCESS Program Office
$!                       11/3/89   Ron Aerni, CSL
$!                       08/1/88   Meg Wheeler, CSL
$!
$!----------------------------------------------------------------------
$!  See if the notes extract has run today.  If the last revision date
$!  and time is before midnight, it must not have run yet today so
$!  submit the job if the we are running interactively.
$!----------------------------------------------------------------------
$ A = F$CVTIME (F$FILE_ATTRIBUTES ("NOTES_EXTRACT.COM", "RDT"))
$ B = F$CVTIME ("TODAY")
$!
$!----------------------------------------------------------------------
$!  Maybe you won't want the /NOLOG on the SUBMIT, but I never look at
$!  the log so why generate it AND print it.  At least use /NOPRINT.
$!----------------------------------------------------------------------
$ IF A .LTS. B .AND. F$MODE () .EQS. "INTERACTIVE" THEN -
      SUBMIT/NOLOG NOTES_EXTRACT.COM
6.2Procedure 2: NOTES_EXTRACT.COMUSEM::CHERNACKI've got mnemonic plagueThu May 16 1991 19:3792
$!  This file is expected to be in your default login directory with a name of
$!  NOTES_EXTRACT.COM   12/13/90
$!
$!  Replace nodename::username with your VMSmail address.
$!  Replace xxxx with the name of the conference you want to read.
$!
$!----------------------------------------------------------------------
$!  Daily notes extract based on a version written/modified by:
$!        04/02/91 KChernack/Cindy Gerace, improved error trapping
$!        12/10/90 Ken Chernack, made more global
$!        1/25/90  Ken Chernack, Sales IS
$!        11/3/89  Ron Aerni, Customer Services Logistics
$!        07/1/88  Meg Wheeler, Customer Services Logistics
$!
$!  Extract the notes, mail the output to yourself and rename the
$!  procedure so the revision date and time is updated.
$!----------------------------------------------------------------------
$!
$ ON ERROR THEN CONTINUE
$!
$!    *** US_SALES_SERVICE conference ***
$!
$ NOTES
OPEN/NOAUTOMATIC US_SALES_SERVICE
SAVE/UNSEEN/SEEN/ALL US_SALES_SERVICE.NOTES 1-*
EXIT
$!
$!
$ IF F$SEARCH("US_SALES_SERVICE.NOTES") .GTS. ""
$ THEN
$   IF F$FILE_ATTRIBUTES ("US_SALES_SERVICE.NOTES", "EOF") .EQ. 0
$     THEN
$        MAIL NL: nodename::username/SUBJECT="NO NEW US_SALES_SERVICE NOTES"
$     ELSE
$        MAIL US_SALES_SERVICE.NOTES nodename::username/SUBJECT="NEW -
US_SALES_SERVICE NOTES"
$   ENDIF
$   DELETE/NOLOG US_SALES_SERVICES.NOTES;*
$ ELSE
$   MAIL NL: nodename::username/SUBJECT="US_SALES_SERVICE CONFERENCE -
INACCESSIBLE"
$ ENDIF
$!
$!    (another example)
$!    *** ACCESS conference ***
$!
$ NOTES
OPEN/NOAUTOMATIC ACCESS
SAVE/UNSEEN/SEEN/ALL ACCESS.NOTES 1-*
EXIT
$!
$!
$ IF F$SEARCH("ACCESS.NOTES") .GTS. ""
$ THEN
$   IF F$FILE_ATTRIBUTES ("ACCESS.NOTES", "EOF") .EQ. 0
$     THEN
$        MAIL NL: nodename::username/SUBJECT="NO NEW ACCESS NOTES"
$     ELSE
$        MAIL ACCESS.NOTES nodename::username/SUBJECT="NEW ACCESS NOTES"
$   ENDIF
$   DELETE/NOLOG ACCESS.NOTES;*
$ ELSE
$   MAIL NL: nodename::username/SUBJECT="ACCESS CONFERENCE INACCESSIBLE"
$ ENDIF
$!
$!    *** (next conference name) notes file ***
$!
$NOTES
OPEN/NOAUTOMATIC xxxx
SAVE/UNSEEN/SEEN/ALL xxxx.NOTES 1-*
EXIT
$!
$ IF F$SEARCH("xxxx.NOTES") .GTS. ""
$ THEN
$   IF F$FILE_ATTRIBUTES ("xxxx.NOTES", "EOF") .EQ. 0
$     THEN
$        MAIL NL: nodename::username/SUBJECT="NO NEW xxxx NOTES"
$     ELSE
$        MAIL xxxx.NOTES nodename::username/SUBJECT="NEW xxxx NOTES"
$   ENDIF
$   DELETE/NOLOG xxxx.NOTES;*
$ ELSE
$   MAIL NL: nodename::username/SUBJECT="xxxx CONFERENCE INACCESSIBLE"
$ ENDIF
$!
$!
$!   DO NOT ERASE OR COPY
$!
$ERROR_EXIT:
$ RENAME/NOLOG NOTES_EXTRACT.COM;* NOTES_EXTRACT.COM;*
$!
    
6.3VAXnotes UtilitiesRIPPLE::KOTTERRIWelcome back KotterFri May 17 1991 14:3724
    Re: Note 6.0 by USEM::CHERNACK

>If you have your own routine and would like to share it, please
>feel free to add it to this topic.

    Two VAXnotes utilities I find very useful are GET_NOTES and WATCH_NOTE.

    GET_NOTES automates the task of searching notes conferences for desired
    information. You can also use it to extract the unseen notes and mail
    them to you. WATCH_NOTE automates the task of checking notes
    conferences for new replies to a certain topic. If found, they will be
    mailed to you.

    Read the comments in the GET_NOTES or WATCH_NOTES procedures for more
    information on how to use them. In addition to the GET_NOTES or
    WATCH_NOTE procedures themselves, you will also need either the ENOTES
    utility or the PAN utility. Copies of these utilities are available
    from:

	RIPPLE::SLS_DISK:[KOTTERRI.PUBLIC]GET_NOTES.COM         (171 blocks)
	RIPPLE::SLS_DISK:[KOTTERRI.PUBLIC]WATCH_NOTE.COM        (60 blocks)
    	RIPPLE::SLS_DISK:[KOTTERRI.PUBLIC]ENOTES.EXE            (57 blocks)
	RIPPLE::SLS_DISK:[KOTTERRI.PUBLIC]PAN.EXE               (510 blocks)