Skip to main content
Question

What does SYSTEM(49) do in UV?

  • March 30, 2026
  • 2 replies
  • 34 views

Philip Ellis

Hi

I’ve come across SYSTEM(49) in a program that I’ve been asked to update.

It’s returning a ‘0’ but I don’t know what it is and the documentation I’ve seen does not say anything about SYSTEM(49).

Can anyone help with this?

Thanks.

 

2 replies

Jonathan Smith
Forum|alt.badge.img+4

SYSTEM(49) on UniData returns the basic call stack

SYSTEM(49) on UniVerse is not used for anything so will return 0

Was this a program that once written for UniData ?

 

 

 


Philip Ellis
  • Author
  • New Participant
  • March 30, 2026

I don’t believe so, as I’m pretty sure that this has always been a UV site.

However, I’ve just been doing a bit of research into other places this is used in the codebase.  What I’ve discovered is that the issue is a typo.

Many moons ago, someone created a function (let’s call it XXSYSTEM) that emulates SYSTEM.  They decided that XXSYSTEM(49) would return @TTY.

The bug in the code that I started out with is that it does X = SYSTEM(49) instead of X = XXSYSTEM(49).

Thanks anyway.