×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi, All:
Here is another fun "trick" I discovered ...
You can type "//" at the beginning of pretty much any OS/400 command,
for example, type:
// DSPJOB
on any command line and then press Enter.
It just ignores the "//" in this case.
The only place I am aware of where you must use the "//" is on the
BCHJOB and ENDBCHJOB commands, used when submitting a batch job from a
source member, using the SBMDBJOB command. Here is an example of a
member with member type "CL" containing such a job:
//BCHJOB JOB(BATCHJOB) JOBD(QGPL/QDFTJOBD) JOBQ(QGPL/QBATCH) +
PRTDEV(*USRPRF) OUTQ(*USRPRF) JOBPTY(*JOBD) +
OUTPTY(*JOBD) PRTTXT(*JOBD) RTGDTA(QCMDB) RQSDTA(*) +
SYNTAX(*JOBD) CURLIB(*USRPRF) INLLIBL(*JOBD) +
ENDSEV(*JOBD) LOG(*JOBD *JOBD *JOBD) LOGCLPGM(*JOBD) +
INQMSGRPY(*JOBD) HOLD(*JOBD) DATE(*JOBD) SWS(*JOBD) +
MSGQ(*LIBL/ISS) SRTSEQ(*USRPRF) LANGID(*USRPRF) +
CNTRYID(*USRPRF) CCSID(*USRPRF)
// DSPLIB LIB(QGPL) OUTPUT(*PRINT)
// DSPLIB LIB(QUSRSYS) OUTPUT(*PRINT)
// ENDBCHJOB
Now, isn't that "special"? ;-)
I suppose it also helps any ex-mainframers to feel more "at home" when
running on OS/400 ... ;-)
Cheers,
Mark
> Douglas Handy wrote:
Jerry,
However, I never saw the * "trick" before, but it sorta makes sense.
Then you never worked on the S/34/36 enough. :)
All * amounts to is an OCL comment line. When you type *, it puts you into
the S36EE entry mode for OCL lines, similar to // LOAD or whatever. It
really isn't quite the same as QCMD, because with * you are in the OCL
interpreter -- which happens to also support native commands.
As an Amazon Associate we earn from qualifying purchases.