gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] R: Stdin/stdout, was Open Cobol Tutorials and other


From: Fabrizio Calabretta
Subject: [open-cobol-list] R: Stdin/stdout, was Open Cobol Tutorials and other things.
Date: Wed, 3 Oct 2007 07:13:27 +0200

This works for OC, ACU and MF:

DISPLAY "MYENVNAME" UPON ENVIRONMENT-NAME
ACCEPT  NEV-VALUE FROM ENVIRONMENT-VALUE

Fabrizio


> -----Messaggio originale-----
> Da: address@hidden [mailto:open-cobol-
> address@hidden Per conto di John Culleton
> Inviato: mercoledì 3 ottobre 2007 1.25
> A: address@hidden
> Oggetto: Re: [open-cobol-list] Stdin/stdout, was Open Cobol Tutorials
> and other things.
> 
> On Friday 28 September 2007 06:52:13 am Roger While wrote:
> > Firstly, understand the difference between cgi use
> > and use as a filter.
> > The ACCEPT does not have an AT END :-)
> > Which, of course, is necessary for a filter.
> > With CGI, the usage is quite clear and you posted
> > ca: end 2005 to this effect (somewhere).
> > (And were answered)
> > In other words, these extensions are not relevant for CGI.
> > The point with CGI is the differentiation between
> > the "GET" and "POST" methods for forms.
> > Both can be handled in Cobol code with a test on the
> > standardized environment variables.
> >
> > Roger
> 
> In TC this statement works:
> ACCEPT identifier-1 FROM ENVIRONMENT-VARIABLE "QUERY_STRING".
> 
> But it causes an error message in OC:
> 
> Error: 'ENVIRONMENT-VARIABLE' undefined in SPECIAL-NAMES
> 
> Can you suggest a proper OC statement? Do I need something in SPECIAL-
> NAMES?
> 
> Your assistance, as always is appreciated.
> --
> John Culleton
> 
> -----------------------------------------------------------------------
> --
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.13.39/1045 - Release Date:
> 02/10/2007 18.43




reply via email to

[Prev in Thread] Current Thread [Next in Thread]