- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unix - Cobol
Operating System - HP-UX
1822934
Members
3770
Online
109645
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2004 12:57 AM
06-02-2004 12:57 AM
Unix - Cobol
Is it possible to pass an argument to an Unix system call command in Cobol .
Ex
Inside cobol
EXHIBIT NAMED WS02-OUTPUT-FILE-NAME.
call "system" using by reference 'll WS02-OUTPUT-FILE-NAME" GIVING AR02-STATUS
Ex
Inside cobol
EXHIBIT NAMED WS02-OUTPUT-FILE-NAME.
call "system" using by reference 'll WS02-OUTPUT-FILE-NAME" GIVING AR02-STATUS
Some cause happiness wherever they go; others, whenever they go
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2004 01:58 AM
06-02-2004 01:58 AM
Re: Unix - Cobol
We use it this way
CALL 'SYSTEM' USING WSAA-CMD
with :
01 WSAA-CMD.
03 FILLER PIC X(8) VALUE ' 03 FILLER PIC X VALUE x'00'.
You can also trp the return code :
CALL 'SYSTEM' USING WSAA-CMD RETURNING return-code
The type for return code is explained in tge Cobol reference manual.
Regards,
Jean-Luc
CALL 'SYSTEM' USING WSAA-CMD
with :
01 WSAA-CMD.
03 FILLER PIC X(8) VALUE '
You can also trp the return code :
CALL 'SYSTEM' USING WSAA-CMD RETURNING return-code
The type for return code is explained in tge Cobol reference manual.
Regards,
Jean-Luc
fiat lux
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP