Not possible at all in the z/OS V2.5 or below POSIX shell because the date 
command does not support the ā€œ-dā€ option at that system level.

In z/OS V3.1 the date command does support the ā€œ-dā€ option and for all of your 
questions below for interface from other languages (except C with popen()) I 
would think invoking bpxwunix would provide the necessary capture.

Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Paul Gilmartin
Sent: Saturday, April 19, 2025 2:09 PM
To: [email protected]
Subject: Re: Day of week from a program

On Sat, 19 Apr 2025 10:12:45 -0700, Tom Brennan wrote:
>
>Has anybody mentioned running the date command under USS, such as:
>date -d '20250101' +%A
>
Nice.  How does one capture the output?:
o In shell with command substitution.
o In REXX or C with popen().
o In Assembler (the OP's need) ??
o in COBOL ??

-- 

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to