Ejecutar un comando en el application server

Con la sentencia CALL ‘SYSTEM’ ID ‘COMMAND’ ejecutamos un comando del servidor. El siguiente ejemplo creaba un determinado directorio en el mismo.

CONCATENATE ‘mkdir’ ‘ ‘ v_ruta ls_bil_invoice-HD_GEN-PAYER ‘\’ ls_bil_invoice-HD_ORG-SALESORG ‘\’ ls_bil_invoice-HD_GEN-BIL_DATE+4(2) ‘\’
INTO l_text.

CALL ‘SYSTEM’ ID ‘COMMAND’ FIELD l_text.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: