?
Solved

Querying QDATFMT from RPG

Posted on 2005-03-17
4
Medium Priority
?
575 Views
Last Modified: 2012-05-05
Any suggestions for obtaining the value of QDATFMT from within an RPG program?
0
Comment
Question by:bodger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:peteie
ID: 13569978
Have you tried using qcmdexec api to run rtvsysval command?  Another option would be to call a cl program that uses the rtvsysval command and returns the value.

Busy right now but if I get a chance later I'll post some code examples.
peteie
0
 
LVL 27

Accepted Solution

by:
tliotta earned 400 total points
ID: 13571360
bodger:

Assuming that you actually need to retrieve the system value itself, the easiest way is probably to create an ILE CL procedure that runs RTVSYSVAL and returns QDATFMT to the caller. Just bind it in with your main RPG procedure.

If that isn't feasible, then the Retrieve System Values (QWCRSVAL) API should be the way to go.

Tom
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question