On Thu, Mar 13, 2014 at 12:58 PM, Tony Harminc <[email protected]> wrote:

> On 13 March 2014 11:08, Donald Russell <[email protected]> wrote:
> >> I've been using WTO ROUTCDE=11 to display various message in the job log
> >> of assembler language batch applications.... that's great/easy for fixed
> >> text messages.
> >>
> >> VM/CMS has the APPLMSG macro which makes it ridiculously simple to build
> >> in storage, or display messages with various types of substitutions...
> >>
> >> I would like to display a message like:
> >>
> >> Records read: xxxx Items found: yyyy  Hit rate: zzz%
> >>
> >> Where the value for x,y and z come from registers or fields.
> >>
> >> Of course I can do it myself with CVD/EDMK etc, but this seems like
> such a
> >> common sort of thing, I hoping there's a macro to do that stuff for me.
> >> Even if the macro builds the message in  storage, then I can use WTO
> >> ROUTCDE=11 pointing to the text result.
>
> How about the C library sprintf function? If you use the Metal C
> version, it can probably be called from assembler in a non-LE
> environment. It does require a "stack" (R13 save area) of around 4KB,
> iirc.
>
> Tony H.
>

Wish I had thought of using the Metal C version of sprintf(). I actually
ended up figuring out how to write  a number of z/OS UNIX commands using LE
enabled assembler so that I could use things such as sprintf() or
snprintf().


-- 
There is nothing more pleasant than traveling and meeting new people!
Genghis Khan

Maranatha! <><
John McKown

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

Reply via email to