Guild Companies, Inc.  
 
Midrange Guru - Tech Tips
OS/400 Edition
Volume 2, Number 27 - April 10, 2002

CLRPFM for the IFS

Hey, Ted:

I know how to use the Clear Physical File Member (CLRPFM) command to clear a database file member. Is there a command that clears IFS files?

-- Bob

Use the Qshell null utility, represented by a colon (:) and redirect the standard output to the file. The following command clears file mydata.txt in the current directory:

:>mydata.txt

This is not an exact equivalent to CLRPFM, because the OS/400 IFS file will be created if it does not exist.

Here's another example in which the OS/400 IFS file, whose name is stored in variable &FILE, is cleared in a CL program.

DCL        VAR(&FILE) TYPE(*CHAR) LEN(80)  
DCL        VAR(&QCMD) TYPE(*CHAR) LEN(256) 
                                            
CHGVAR     VAR(&QCMD) VALUE(':>' *CAT &FILE) 
QSH        CMD(&QCMD)                        

-- Ted

Sponsored By
TRAMENCO

Learn what's over the horizon for the iSeries and AS/400, and how it will impact your career, by attending the premier training event of 2002. It's the iSeries and AS/400 Connection Conference June 16 – 19, 2002 in Naples Florida. Join 19 of the industries greatest minds including Dr. Frank Soltis, Skip Marchesani, Wayne O. Evans, Susan Gantner, Jon Paris, Marie Finnegan-Cronin, and Howard Arner, Jr. as they deliver AS/400 training and education to prepare you for the challenges of tomorrow. A full agenda of 96 sessions (including 10 hands-on labs) provide practical instruction in a full range of topics, including:

  • Understanding Websphere Development Studio

  • Accessing DB2/400 data from Linux

  • Learning how JavaBeans are used

  • Make the most of RPG IV's built in functions

  • SQL Tricks and Techniques

  • ABCs of System Management

  • And much more!
Whether you are an old pro, or just getting your feet wet, there is something for everyone during this intensive four-day conference. Best of all, your classroom is the Registry Resort and Spa, Naples Florida's premier 5-star resort. To register, or for more information, call 1 800 897.5923, or go to the web at www.tramenco.com. But hurry, you must register before May 15, 2002 to save $200 off the standard registration and be eligible for special hotel rates.

THIS ISSUE
SPONSORED BY:
WorksRight Software, Inc.
TRAMENCO
BACK ISSUES
TABLE OF CONTENTS
Avoiding a Sign-On with Java
CLRPFM for the IFS
Reader Feedback and Insights: Ad-Hoc SQL and Linux
  Newsletters | Subscribe | Advertise | About Us | Contact | Search | Home  
  Last Updated: 4/10/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.