Save 
Join IIUG
 for   
 

Informix News
29 July 09 - Wall Street Journal - IBM to Acquire SPSS, Adding to Acquisitions... Read
11 February 09 - InformationWeek - IBM Drifts Slowly Toward Mainstream Cloud Computing... Read
11 February 09 - CNNMoney.com - IBM to Deliver Software via Cloud Computing With Amazon Web Services... Read
07 January 09 - Huliq News - IBM Power Servers Helps Bank of Chengdu Build Up Core Banking System.. Read
04 December 08 - Steeleye - Multicarta achieves 99.997% uptime for its Informix-based Credit Card Authorization Centre... Read
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read





End of Support Dates

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IIUG Español

Re: 4gl/spl - verificar si existe directorio

Posted By: hdiaz
Date: Wednesday, 10 March 2010, at 7:19 p.m.

In Response To: 4gl/spl - verificar si existe directorio (CRISTIAN PEREDO)

Cristian,

Ejecuta las instrucciones directamente desde tu 4gl, por ejemplo:

LET f_cmd_unix = "test -d ", f_directorio CLIPPED
RUN f_cmd_unix RETURNING f_estatuto
IF f_estatuto <> 0 THEN
LET f_cmd_unix = "mkdir ", f_directorio CLIPPED
RUN f_cmd_unix RETURNING f_estatuto
IF f_estatuto <> 0 THEN

ERROR "Falla la creación del directorio ", f_directorio CLIPPED

SLEEP 10

EXIT PROGRAM
END IF
END IF

Héctor

El mié, 10-03-2010 a las 09:59 -0500, CRISTIAN PEREDO escribió:
> Hola a Tod@s,
>
> Tengo un 4gl que hace varias funciones, pero dentro de lo que he tratado de
> hacer, esta el poder verificar si existe un directorio determinado.
>
> Ya que no encontre ni en 4gl ni spl la forma directa de hacerla, por ejemplo,
> con una shell es posible verificarlo, por ejemplo:
>
> exdir.sch
>
> if [ -d $1 ]
> then
> exit 00
> else
>
> exit 99
> fi
>
> que retorna 0 si existe el directorio q se pasa como parametro y 99 en caso
> contrario...
>
> para ejecutar la shell, genere un spl:
>
> CREATE PROCEDURE existe_directorio(nomdir CHAR(100))
> SYSTEM 'sh /u/etc/bin/exdir.sch'||nomdir
> END PROCEDURE
>
> Desde el 4gl respectivo, puedo llamar al spl
> "existe_directorio(parametro)"....Mi problema, es que no se como poder obtener
> el retorno de la shell o del spl, de manera de saber si existe o no el
> directorio...Por ejemplo, podra hacer un SYSTEM 'echo $?', pero no logro
> encontrar la forma de obtener el resultado en una variable que el spl
> "existe_directorio" me la retorne al 4gl..
>
> espero me haya explicado bien, y gracias de antemano por la ayuda.
>
> Saludos,
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IIUG Español is maintained by Administrator with WebBBS 5.12.