RE: [U2] Login Paragraphs

2006-06-20 Thread Kevin King
Unless you're dealing with a dozen or less users total, why not write
a program and store the timeout value for each user in a file
somewhere?  That would certainly reduce the amount of tweaking in your
VOC. 


-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Sohn
Sent: Tuesday, June 20, 2006 3:01 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Login Paragraphs

I'm trying to set the TIMEOUT value for a user in the LOGIN paragraph
based on the first few characters of the user ID but I don't know how
to check for partial matches. 

I'm doing:

PA
TIMEOUT 600
IF @LOGNAME = "jsmith" THEN TIMEOUT 1200 IF @LOGNAME = "psohn" THEN
TIMEOUT 3600
  

I would like to add something like the below but I'm not sure of the
syntax:

IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400


Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-20 Thread Jerry Banker
I've found that if a login paragraph starts getting too complicated it's
best to start using a program.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Sohn
Sent: Tuesday, June 20, 2006 4:01 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Login Paragraphs

I'm trying to set the TIMEOUT value for a user in the LOGIN paragraph
based
on the first few characters of the user ID but I don't know how to check
for
partial matches. 

I'm doing:

PA
TIMEOUT 600
IF @LOGNAME = "jsmith" THEN TIMEOUT 1200
IF @LOGNAME = "psohn" THEN TIMEOUT 3600
  

I would like to add something like the below but I'm not sure of the
syntax:

IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400


Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-20 Thread Paul Sohn
Basically I want all users to have the same time out value except for our rf
guns which should get a different value (all rf users start with "rf").  I
didn't want to have to go the programmatic route for something this simple -
well simple in theory at least.  :)

 
-Original Message-
From: Kevin King [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 20, 2006 2:12 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Login Paragraphs

Unless you're dealing with a dozen or less users total, why not write
a program and store the timeout value for each user in a file
somewhere?  That would certainly reduce the amount of tweaking in your
VOC. 


-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Sohn
Sent: Tuesday, June 20, 2006 3:01 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Login Paragraphs

I'm trying to set the TIMEOUT value for a user in the LOGIN paragraph
based on the first few characters of the user ID but I don't know how
to check for partial matches. 

I'm doing:

PA
TIMEOUT 600
IF @LOGNAME = "jsmith" THEN TIMEOUT 1200 IF @LOGNAME = "psohn" THEN
TIMEOUT 3600
  

I would like to add something like the below but I'm not sure of the
syntax:

IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400


Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-20 Thread Anthony Dzikiewicz
What Ive done in my login para for our rf users (and others) is this.
Each user logs in and gets a menu such as;

IF @LOGNAME = 'anthony' THEN ANTHONY.MENU

However for rf users I do;

IF @LOGNAME = 'rfuser1' THEN GO RF.MAIN
.
.   
.
RF:MAIN:
SET.TERM.TYPE VT100CK
ETC.
GO EXIT:

You might consider doing something like this.
Anthony


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Sohn
Sent: Tuesday, June 20, 2006 5:01 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Login Paragraphs


I'm trying to set the TIMEOUT value for a user in the LOGIN paragraph
based on the first few characters of the user ID but I don't know how to
check for partial matches. 

I'm doing:

PA
TIMEOUT 600
IF @LOGNAME = "jsmith" THEN TIMEOUT 1200
IF @LOGNAME = "psohn" THEN TIMEOUT 3600
  

I would like to add something like the below but I'm not sure of the
syntax:

IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400


Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 6/16/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 6/16/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-20 Thread Stevenson, Charles
Use MATCHES

My @LOGNAME is 'cds33896' so :
 
>CT VOC PAUL

 PAUL
0001 PA
0002 WHO
0003 IF @LOGNAME MATCHES "'cd'0X" THEN DISPLAY YEP - cd
0004 IF @LOGNAME MATCHES "'rf'0X" THEN DISPLAY RF - rf


>PAUL
12 cds33896
YEP - cd
>
_

> I'm trying to set the TIMEOUT value for a user in the LOGIN 
> paragraph based on the first few characters of the user ID 
> but I don't know how to check for partial matches. 
> 
> I'm doing:
> 
> PA
> TIMEOUT 600
> IF @LOGNAME = "jsmith" THEN TIMEOUT 1200 IF @LOGNAME = 
> "psohn" THEN TIMEOUT 3600
>   
> 
> I would like to add something like the below but I'm not sure 
> of the syntax:
> 
> IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400
> 
> 
> Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Login Paragraphs

2006-06-20 Thread Ray Wurlod
On 10.0.4 at least you can use MATCHES

IF @LOGNAME MATCHES "rf..." THEN AUTOLOGOUT 72
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-21 Thread Richard Sammartino
Paul, I wrote a 5 line program/subroutine that takes the contents of
@LOGNAME and loads it into @USER.RETURN.CODE. I manipulate the contents of
@USER.RETURN.CODE and in the LOGIN paragraph I check the value of
@USER.RETURN.CODE to set the TIMEOUT value.

Rich Sammartino

Richard Sammartino
Systems Analyst
School District of Philadelphia
440 N Broad Street
Philadelphia,  Pa 19130
Phone: (215) 400-5086
Fax:   (215) 400-4411 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Sohn
Sent: Tuesday, June 20, 2006 5:01 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Login Paragraphs

I'm trying to set the TIMEOUT value for a user in the LOGIN paragraph based
on the first few characters of the user ID but I don't know how to check for
partial matches. 

I'm doing:

PA
TIMEOUT 600
IF @LOGNAME = "jsmith" THEN TIMEOUT 1200
IF @LOGNAME = "psohn" THEN TIMEOUT 3600
  

I would like to add something like the below but I'm not sure of the syntax:

IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400


Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Login Paragraphs

2006-06-21 Thread Paul Sohn
This did the trick.

Thanks!
Paul

-Original Message-
From: Stevenson, Charles [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 20, 2006 6:16 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Login Paragraphs

Use MATCHES

My @LOGNAME is 'cds33896' so :
 
>CT VOC PAUL

 PAUL
0001 PA
0002 WHO
0003 IF @LOGNAME MATCHES "'cd'0X" THEN DISPLAY YEP - cd
0004 IF @LOGNAME MATCHES "'rf'0X" THEN DISPLAY RF - rf


>PAUL
12 cds33896
YEP - cd
>
_

> I'm trying to set the TIMEOUT value for a user in the LOGIN 
> paragraph based on the first few characters of the user ID 
> but I don't know how to check for partial matches. 
> 
> I'm doing:
> 
> PA
> TIMEOUT 600
> IF @LOGNAME = "jsmith" THEN TIMEOUT 1200 IF @LOGNAME = 
> "psohn" THEN TIMEOUT 3600
>   
> 
> I would like to add something like the below but I'm not sure 
> of the syntax:
> 
> IF @LOGNAME[1,2] = "rf" THEN TIMEOUT 2400
> 
> 
> Paul
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/