HP3000-L Archives

August 2005, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Larry Barnes <[log in to unmask]>
Reply To:
Larry Barnes <[log in to unmask]>
Date:
Mon, 15 Aug 2005 10:12:56 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (78 lines)
You could also try something like this 
 (not tested but the veprofile syntax should work)

I would do something like this:

 repeat
  if veprofileinfo("!mpexcurrentprofile").hourbegin > nn
   abortjob !mpexcurrentprofile
  endif
 forprofiles !prof_names 

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Reggie Monroe
Sent: Monday, August 15, 2005 9:38 AM
To: [log in to unmask]
Subject: [HP3000-L] Set a variable for a specific position in a file

Currently we have a job that runs vesoft listuser command and dumps the
information to a file. We then filter out only the session name and
field that show the hours of the day the session can logon(see example
of file below). 
 
CAROL ;     10 AM- 3 PM
CAROLN ;    8 AM- 9 AM
CAROLO ;  11 AM- 8 PM
M06266 ;    11 AM- 2 PM
REGTEST ;12 PM- 3 PM
CNGUYEN ; 8 AM-10 AM
REG1 ;        1 AM- 2 AM
REG2 ;        5 AM- 6 AM
CNGUYEN ; 8 AM-10 AM
 
 
What we would like to do and the problem we are having is as follows: We
are trying to set a variable for the position for the session name (for
example positions 1-8 in the above file example we'll call it sess).
Then we want to set a variable for the end time (position 17 we'll call
it hour). Then set an if statement that in a loop that states if HPHOUR
> than hour then abort sess.
 
If anyone could help us with this I would be greatly appreciative.
 
 
 
Regards
 
Reginald Monroe
Systems Engineering
Mercury Insurance - Information Technology
(714) 671-6753
[log in to unmask]
 

This email and/or any files or attachments transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable
law. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this e-mail and/or any files or attachments transmitted with it is
strictly forbidden. If you have received this email in error, please
delete the e-mail and/or any files or attachments, and also notify the
system manager ([log in to unmask]) of the error. Please
note that any views or opinions presented in this email are solely those
of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email and/or any files or
attachments transmitted with it.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2