Elaborating a little bit, it seems like a very promising approach: - COBOL calling C seems to be fully supported (no personal experience) - C invoking UNIX services is about as basic as it gets - And C has the power to bridge readily any "incompatibilities" (e.g., "the COBOL programmer wants to pass this value in upper case but it needs to be in lower case for the called UNIX service"; or "this value will be passed fixed length; it needs to have the blanks stripped and be null-terminated").
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Charles Mills Sent: Saturday, September 2, 2017 5:42 PM To: [email protected] Subject: Re: Unix-question Hopefully John M. because Charles M. is a little lost! I've never used popen(). If I had to add "UNIX services" to a COBOL program I think I would link (statically or dynamically) to a C program and do the UNIX stuff directly from there. But I have no idea if that would work well or what the gotcha's would be -- that would just be my first direction. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Saturday, September 2, 2017 5:10 PM To: [email protected] Subject: Re: Unix-question On Sat, 2 Sep 2017 21:24:35 +0000, scott Ford wrote: > >How can a LE enable application, using COBOL, C , etc. call UNIX >services, perform a function a UNIX function And retrieving output back >to COBOL..hence I would have to , have COBOL call C issue 'popen' build >pipe, send commands Etc.., is this correct ? > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
