IMHO the prerequisite questions are "where is the STCK value now and where do 
you want the formatted value to end up?"

I read the OP's question as implying that the answer to "now?" is "in the 
records of some file" and the answer to "end up?" is "in the records of a file 
or SYSOUT." In that case I would think that a DFSORT-based approach makes sense.

If the answers to both questions are "in memory inside an executing HLASM 
program" then STCKCONV makes sense.

If the information is in files then STCKCONV implies writing a custom HLASM 
program to produce the desired results.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Tom Harper
Sent: Friday, September 16, 2022 9:41 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: dfsort - microseconds (STCK/TOD)

Better to use:

https://www.ibm.com/docs/en/zos/2.1.0?topic=routine-description

Tom Harper 
Phoenix Software International 

Sent from my iPhone

> On Sep 16, 2022, at 12:28 PM, Stefan Lezzi 
> <000004561630d35b-dmarc-requ...@listserv.ua.edu> wrote:
> 
> Hi all!
> 
> What do I miss?
> 
> I want to format a STCK/TOD with microseconds, but I found only the method to 
> format it with hundredths of a second:
> 
> C'"TRNSTCK":"',393,8,DC1,EDIT=(TTTT-TT-TT),C'T',                
>               393,8,TC4,EDIT=(TT:TT:TT.TT),C'0000+00:00',C'",',
> 
> And I know how to calculated an elapsed time in microseconds:
> 
> C'"ELAMICS":"',(517,8,BI,SUB,393,8,BI),DIV,+4096,C'",',

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to