Quantcast
Channel: Net Express / Server Express - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 375

RE: Validating Email Domains from COBOL

$
0
0

Hi Don,

You mentioned that you've tried to call the SYSTEM routine. Calling this routine in Server Express requires that you pass a null terminated string (a string where the command is followed by a low-values or X'00' character.)

You may want to take a look at the following Micro Focus Knowledge Base article, which demonstrates one technique for setting up the null terminated string, and shows retrieving a return code:

community.microfocus.com/.../6537.invoke-a-unix-command-from-within-cobol-using-call-system-and-retrieve-return-code.aspx

If you are using Micro Focus COBOL syntax, another option for creating a null terminated string is to use a Z before your literal, for example:

MOVE Z"ls -l"   to ws-command


Viewing all articles
Browse latest Browse all 375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>