Home > AS/400 Tips > iSeries administrator tips > Green-screen commands for an IFS toolkit
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Green-screen commands for an IFS toolkit


Joe Hertvik
10.17.2001
Rating: -3.28- (out of 5)


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


The increased amount of Web-based technology inside OS/400 has created a greater need for AS/400 operators to access and manipulate ASCII-based files and directories in the Integrated File System (IFS), where files for programs such as WebSphere and your AS/400 Web pages are frequently stored. Although IBM provides several tools for IFS manipulation inside its iSeries Operations Navigator program, sometimes it's just easier to perform IFS modification from within the green screen -- if you know the proper commands.

To that end, OS/400 contains a set of green-screen commands that perform basic IFS manipulation and authorization functions. These commands form the basis of a green-screen IFS toolkit, and they can help you make quick IFS changes through a 5250 emulation screen. You can use these commands if you don't want to take the time to open up OpsNav. These commands are also useful if you're working over a slow modem connection where OpsNav's graphical interface may run sluggishly, or if the PC you're using for AS/400 connectivity doesn't have OpsNav installed. Whatever the reason, the following OS/400 commands are valuable for quick IFS changes from the green screen.

1. Create Directory (CRTDIR) -- This command allows you to create directories inside any of the non-QSYS.LIB file systems in the IFS. CRTDIR syntax is simple in that you specify the IFS path name of the directory you wish to create. If you want to create a directory called '/S400' off the '/HOME' directory under the IFS root, you can specify an absolute path name by coding CRTDIR in the following way:

In addition to creating the directory, there are other CRTDIR parameters that allow you to specify data and object authority for the new directory.

2. Remove Directory (RMVDIR) -- RMVDIR is the opposite of CRTDIR in that it deletes directories from the Integrated File System, rather than creating them. The syntax rules are the same as f...


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



RELATED CONTENT
Performance
Will overloaded discs impact iSeries performance?
Extend storage capacity on an IBM i without negatively effecting system performance
Database drivers on the i: MySQL vs. IBM Toolbox
Performance tuning for IBM i: The basics and beyond
IBM releases new Power products for the midrange
Top System i admin tips for 2006
Catholic Charities keeps track of homeless with iSeries
i5 error messages: What you need to know
IBM races for clock speed
System shutting down after cleanup

iSeries system performance and monitoring
Analyze the health of your IBM i server with iScore
Translating Linux for IBM i admins: Working with jobs and networking
Database performance comparisons on IBM i
How to: Monitoring job activity on the AS/400
Performance tuning for IBM i: The basics and beyond
How to: Reduce the percentage of ASP used on the AS/400
Detecting system changes made by outside IP address
AS/400 system values quiz
Checking on System i disk space requires creating a new command: XRTVSYSSTS
Drive space management commands

Implementation
Getting modules to adopt authorities from the main program
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Using the SPLF0200 format in QUSLSPL API
New option within the WRKSYSACT command
Identify files used in all queries
Security Tools can help manage your system security
Client Access Express password cache
Check constraint allows database admins to sleep a bit better at night
See the users with *change or *all authority
Implementation Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
CIW  (Search400.com)

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


or the CRTDIR command, and if you wanted to delete the '/home/s400' directory you would enter RMVDIR in the following way:

3. Edit File (EDTF) -- This command allows you to edit stream files in the IFS. (It can also be used to edit OS/400 database files.) Like CRTDIR and RMVDIR, you can specify the absolute or relative path names of the files you want to edit. For example, if you wanted to edit a file called 'index.htm' in the '/home/joe' directory, you would enter the EDTF command with an absolute path name, as follows:

The beauty of EDTF is that it brings stream file data into an SEU-like screen so that you can edit and save the data. When you save your work, it writes the file to the target IFS location in the format used by that IFS file system (ASCII, when you are saving to the root directory).

4. IFS Authority commands -- There are also a group of commands that allow you to display, change and manage object authority for IFS objects. These commands include the following:

  • Display Authority (DSPAUT) -- Display a users' authority to an IFS object
  • Work with Authority (WRKAUT) -- Allows you to work with IFS object authority
  • Change Authority (CHGAUT) -- Allows you to add, remove or change authority for specific users on IFS objects
  • Change Owner (CHGOWN) -- Allows you to change the owner of a particular object
  • Change Primary Group (CHGPGP) -- Allows you to change the primary group of an IFS object to another user or to specify that there is no primary group for an object

So, the next time you need to work with objects in the IFS, be sure to check out these tools. They're handy commands to have in your toolbox.

-------------------------------
About the author: Joe Hertvik is an IT consultant and freelance writer who specializes in middleware, network infrastructure, and iSeries issues. Joe can be reached at hertvik@home.com.

========================
MORE INFORMATION
========================


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.




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.



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

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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