From owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org  Tue Jan 27 13:58:41 2015
Return-Path: <owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org>
X-Original-To: sc22wg5-dom8
Delivered-To: sc22wg5-dom8@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 7CAE8358394; Tue, 27 Jan 2015 13:58:41 +0100 (CET)
Delivered-To: sc22wg5@open-std.org
Received: from smtps-n.oca.eu (smtps-n.oca.eu [192.54.174.167])
	by www.open-std.org (Postfix) with ESMTP id E48233570B0
	for <sc22wg5@open-std.org>; Tue, 27 Jan 2015 13:58:37 +0100 (CET)
Received: from PICHONNEW (dhcp1-149.oca.eu [10.250.1.149])
	by smtps-n.oca.eu (Postfix) with ESMTPSA id 49D63810EF
	for <sc22wg5@open-std.org>; Tue, 27 Jan 2015 13:58:35 +0100 (CET)
From: "Bernard PICHON" <Bernard.Pichon@oca.eu>
To: <sc22wg5@open-std.org>
References: 
In-Reply-To: 
Subject: Proposal of a new requirement : CMDMSG optional argument in 3 subroutines
Date: Tue, 27 Jan 2015 13:58:25 +0100
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAMnF5Kxjc59Lu6RtLO1hKIsigQAAEAAAAAOXhoPuQmNNh0WItmZPB08BAAAAAA==@oca.eu>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdA1iwTODoN7NQxgQBG+FtQe0FuIxQACMYVwASc5xFA=
Content-Language: fr
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

Dear all members of WG5

In the past I suggested to introduce in Fortran
some means to retrieve =93error message=94 from the
processor. This feature is now standardized with
keywords IOMSG=3D for I/O routines, keyword ERRMSG=3D
for memory and image control routines and the
optional argument CMDMSG is defined in
EXECUTE_COMMAND_LINE subroutine.

I encounter these days some difficulties with the
subroutine GET_ENVIRONMENT_VARIABLE and discovered
that this subroutine doesn=92t implement any means
to retrieve =93error message=94 from the host
processor although the optional argument STATUS is
defined.

So, I put to WG5 the following requirement written
by analogy with EXECUTE_COMMAND_LINE subroutine :

Note that you may receive this mail twice due to a
change in my mail address ; sorry for that !!

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Add the optional argument CMDMSG in subroutines
GET_COMMAND , GET_COMMAND_ARGUMENT and
GET_ENVIRONMENT_VARIABLE with this edit :

CMDMSG (optional) shall be a default character
scalar. It is an INTENT (INOUT) argument. If an
error condition occurs, it is assigned a
processor-dependent explanatory message.
Otherwise, it is unchanged.=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Dr. Bernard PICHON (from France)=20
CNRS =96 Observatoire de la C=F4te d=92Azur (OCA)


