For Programmers: Free Programming Magazines  


Home > Archive > Cobol > September 2006 > ACCEPT the TTY line number in MF COBOL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ACCEPT the TTY line number in MF COBOL
C C

2006-09-26, 9:55 pm

Is there a better way to accept the pts line number of a telnet session in
Microfocus Cobol in AIX 5.3?

We are using Micro Focus Server Express.

Thanks in advance.



Stephen Gennard

2006-09-27, 3:55 am

The easiest way I can think of is:

select foobar assign "</usr/bin/tty"
line sequential.
fd foobar.
01 rec pic x(20).

procedure division.
open input foobar
read foobar
at end
move "unknown" to rec
end-read
close foobar
display "My TTY is : " rec
exit program.

"C C" <someone@atsbcglobal.net> wrote in message
news:0lkSg.15948$Ij.9536@newssvr14.news.prodigy.com...
> Is there a better way to accept the pts line number of a telnet session in
> Microfocus Cobol in AIX 5.3?
>
> We are using Micro Focus Server Express.
>
> Thanks in advance.
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com