The System i Management Tips blog brings over 80 useful tips from Vision technicians.
The blog has been opened to tips from our followers! For each tip you submit that that is posted on the blog, you'll be contacted to select one item from our selection of Vision-logo items. Examples include coffee mugs, t-shirts, golf balls, flash drives and more!
Send your tips to: itips@visionsolutions.com
You may want to determine what jobs or objects are responsible for generating journal entries in a journal's receiver chain, for example, if you notice that many receivers are being created for the journal.
To determine what jobs or objects are responsible for generating journal entries in a journal's receiver chain, create an outfile from the DSPJRN command and run an SQL query on the outfile:
1. Create the outfile by running one of the following DSPJRN commands:
Many times when enrolling an Integrated File Systems (IFS) object into journaling a message appears stating the attempt was unsuccessful. Typically this outcome occurs because of locks. Unfortunately, there is no WRKOBJLCK command for IFS so an API is needed to display all the jobs that have a lock on an IFS object.
Call the API program: CALL QP0FPTOS PARM(*LSTOBJREF '/ifspath/ifsfile' *FORMAT2)
You will need *SERVICE authority to call this API. This API will output a detailed spooled file with all the jobs that have a lock(s) on that IFS object and the type of lock that exists.
Note: the third character (from the left) in the API object name is a ‘zero’ and the seventh character is an alpha letter ‘O’.
To access the IFS on a remote system, type the following on a command line: WRKLNK/qfilesvr.400/(system name). For instance, if you are on system "ABC02" and want to access the IFS on system "ABC01", the command would be: WRKLNK/qfilesvr.400/ABC01. The resulting screen shows the entire IFS file system on system ABC01. From here, you can do anything in the IFS that you can do if you were locally connected to ABC01 (including creating IFS objects, removing IFS objects, etc.).
Next week’s tip will show you how to quickly see what remote systems you can access from a local system, and even how to access a system that you can’t see.
1. Go to My Computer and click Tools, then select Map Network Drive. 2. Select any drive Letter that in not in use. In the folder section you would put \\systemname\directory you would like access to, for example: \\PROD\TESTING. 3. You will be prompted for your user ID, which is your domain user ID (for example, Vision\AS400 Login ID), and your passoword, which is your i5/OS login password.
You will now have access to folders and files in this portion of the IFS. Going forward, all you need to do is go to My Computer and click on your mapped drive.
Using the WRKLNK command, navigate to the folder that is above the folder you want to delete and type option 2. Press Enter. From the display that appears, type option 9 (Recursive delete) next to the folder you want to remove and press Enter. The folder and all sub-folders will be removed.
Anybody familiar with UNIX or Linux operating systems is aware of the usefulness of symbolic links to folders and files. This basically involves creating a link to a file in another location from the original, allowing people to access or edit the original file from another location.
On the System i this can be done by prompting the ADDLNK command. Enter the full IFS path of the object you want to link to in the Object field and the full IFS path of the link you would like to create for it.
Use link type *SYMBOLIC if you need to link to an object on another file system or if you would like the link to remain regardless of whether the object you are linking to still exists, use link type *HARD if you would like to make sure links are only maintained whilst the object exists (if you choose to delete the object at a later date you would need to remove its *HARD links first).
Employment at Vision Solutions. Vision Solutions seeks experienced IBM i (i5/OS) and AIX technical and support personnel. To learn more and see available openings click here