Home > AS/400 Tips > iSeries programmer tips > "Time" saving programming tips for iSeries
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES PROGRAMMER TIPS

"Time" saving programming tips for iSeries


Andrew Borts
06.17.2007
Rating: -4.09- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


If I want a system to start something at a specific time, I don't ever tell it "around 8:15pm do this." I need it done at 8:15pm! We're no longer in an age when our systems can stay out of touch with the actual time. How can we do this without requiring the operator with the coolest digital watch being assigned to a spectacularly mundane task of setting the clocks on the PC's and on the AS/400's daily? Have the AS/400 synchronize with the NIST standards then have those PC's synchronize to to the AS/400 … but how do we do that?

Step one: Get the PTF

In March nearly everyone in the U.S. had the amazing shock of an extra hour taken away (or given back – I always get that mixed up!) because of Daylight Saving Time (DST). OS/400 has been equipped with a new set of standards for time zones which deal specifically with Standard and DST. The IBM website has a link to program temporary fixes (PTF) and information explaining the DTS changes that are a result of the Environment Protection act of 2005 Download DTS PTF for i5 or iSeries).

Once these PTF's have been applied, your system sets DTS automatically. No more early morning telnet sessions with the servers the morning your own clock radios are messed up.

Step two: Program iSeries self-setting feature

Program OS/400 to set itself using the internet to the "standard time" CFGTCP

You'll see Handy dandy Option 19 Take it

And set your NIST Time server – I chose

Note that you can use multiple clients to poll from.

Now there are two servers working here: the "Client" to get the information and a Server to tell your systems how to set themselves. Yes – how, you say?

By pointing your PCs to your iSeries or i5 you will force it to set the time from it. So go to the PCs command line and look at the "NET TIME" command as follows;

So if you'd like your PC to point to your server and synchronize it's time, you'd simply type ; NET TIME /SETSNTP xx.yy.zz.aa

where xx.yy.zz.aa is the address of your iSeries or i5. To force the PC to set itself again, type ;

NET TIME /QUERYSNTP

To stop and restart the PC's Time service type;

NET STOP w32time
NET START w32time

Like what you see? Now set your watch to your server!

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
iSeries programmer tips
Using SQL on System i to create multicolored comment lines
Eight steps for creating program documentation using AS/400 utilities
DAYSPAST CLLE program for AS/400: Compares object creation date with today's date
Coloring source lines with COBOL and using a shortcut from within PDM
Date calculation commands for AS/400
There is very little RPG on System i can't do: From RPG nay to RPG yay!
Using SQL on System i to color source code and inline comments
Controlling spool files with APIs
System i document management tips
Selective SPOOLFILE copy to CSV files and e-mail

Physical connections to iSeries
PC/Windows connectivity: Top 10 expert Q&As
Run command on a PC
Working with ODBC and dates
Why is my job taking twice as long?
Problems with new server and PC
Take control of your iSeries network security -- Part 2
The iSeries and MS Office make good partners
Microsoft computing: Integrating the iSeries and Microsoft Office
i5/OS and Microsoft Office Integration Handbook, Third Edition -- Chapter 3
Know-IT-All Chapter Quiz: i5/OS and Microsoft Office Integration Handbook, Third Edition
Physical connections to iSeries Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts