|
from: Dan Bale <dan.bale@xxxxxxxxxxxxxxxxxxxxx>
subject: DIR QNTC\ /b /ad > *some file that can be read in CL or RPG*
So here's the deal. We find that some links in QNTC disappear after an
IPL. Currently, we capture the links before IPL via:
DSPLNK OBJ('/QNTC/*') OUTPUT(*PRINT) OBJTYPE(*ALLDIR) DETAIL(*NAME)
DSPOPT(*ALL)
Then, after IPL, using the DSPLNK report, if we find any links are
missing, we manually recreate them via CRTDIR.
The problem arises when some links have a trailing blank in the name. I
don't know how or why, but they do, and we have to "deal with it". I
discovered this by opening a command window, changing to the drive which is
mapped to the IFS, then using:
DIR QNTC\ /b /ad > \DirQNTC.txt
When I open DirQNTC.txt in Notepad++, it will show any trailing blanks
before the CR/LF.
Unfortunately, there's no way to tell if there are any trailing blanks on
the DSPLNK report.
I am trying to automate the collection of the QNTC links with the trailing
blanks into a table on the i, so we can recreate them easily when needed.
My thought is to do:
DIR QNTC\ /b /ad > *some file that can be read in CL or RPG*
but am drawing blanks on how to do this, if it's even possible. Any ideas
on how to accomplish this?
*** CONFIDENTIALITY NOTICE: The information contained in this
communication may be confidential, and is intended only for the use of the
recipients named above. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution, or
copying of this communication, or any of its contents, is strictly
prohibited. If you have received this communication in error, please return
it to the sender immediately and delete the original message and any copy
of it from your computer system. If you have any questions concerning this
message, please contact the sender. ***
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.