|
There are tradeoffs in all this formatting stuff, seems to me. I think the way
SEU did it had some justification that is probably written up in a design doc
at IBM. Maybe the idea was that labels went to the left and that pushed the
command to the right. Pure idle speculation on my part. ;-)
I do like putting each parameter on its own line - quite readable. But it
results in a longer, larger source member, and in very large source (who would
ever get a CL this large?) one could theoretically run out of room. Not an
issue in any real-life situation I can think of.
The division to separate lines does not, however, extend to parameters that are
lists. Here is an example
CRTPGM PGM(LIBRARY/PROGRAM) +
MODULE(LIBRARY/MODULE01 LIBRARY/MODULE02 LIBRARY/MODULE03 +
LIBRARY/MODULE04) +
BNDSRVPGM(LIBRARY/SRVPGM01 LIBRARY/SRVPGM02 +
LIBRARY/SRVPGM03)
I might like to see something like
CRTPGM PGM(LIBRARY/PROGRAM) +
MODULE(LIBRARY/MODULE01 +
LIBRARY/MODULE02 +
LIBRARY/MODULE03 +
LIBRARY/MODULE04)
BNDSRVPGM(LIBRARY/SRVPGM01 +
LIBRARY/SRVPGM02 +
LIBRARY/SRVPGM03)
Of course, pretty-print is almost as religious a topic as OS's. ;-)
Vern
-------------- Original message --------------
> Thanks. I, too, think it's a terrible waste of real estate to start
> commands so far to the right (just because that's how SEU does it doesn't
> make it right). I'll try your settings and give this autoformatting a try
> for awhile.
>
> Rob Berendt
> --
> Group Dekko Services, LLC
> Dept 01.073
> PO Box 2000
> Dock 108
> 6928N 400E
> Kendallville, IN 46755
> http://www.dekko.com
>
>
>
>
>
> vhamberg@xxxxxxxxxxx
> Sent by: wdsci-l-bounces@xxxxxxxxxxxx
> 08/29/2005 05:20 PM
> Please respond to
> Websphere Development Studio Client for iSeries
>
>
> To
> Websphere Development Studio Client for iSeries
> cc
>
> Subject
> Re: [WDSCI-L] cl formatting
>
>
>
>
>
>
> Ah, Rob, I misunderstood. The F14 prompt does not have the "+" signs,
> right?
>
> The amount of indentation, etc., are all in the preferences. I have mine
> set to have the command itself start in column 3, continuation lines
> indented 13, one parameter per line. Makes it look a lot like the F14
> prompt you showed. And labels in column 1, above the command. Also have
> auto-indent on, 2 spaces. Auto syntax checking and uppercase are turned
> off, as well.
>
> Good luck
> Vern
> -------------- Original message --------------
>
> > I didn't "enter" it. I pasted it from a 5250 prompt with F14.
> >
> > Also, I'd rather it didn't blot the 2nd and 3rd line of the following
> out
> > 2 spaces:
> > OVRPRTF FILE(QPJOBLOG) DEV(EMLPDF) OUTQ(*DEV) HOLD(*NO) +
> > USRDTA('Joblog') +
> > USRDFNDTA('MAILTAG(01000000000000OPERATIONS)')
> >
> > I'll check those cl formatting options.
> >
> > Rob Berendt
> > --
> > Group Dekko Services, LLC
> > Dept 01.073
> > PO Box 2000
> > Dock 108
> > 6928N 400E
> > Kendallville, IN 46755
> > http://www.dekko.com
> >
> >
> >
> >
> >
> > vhamberg@xxxxxxxxxxx
> > Sent by: wdsci-l-bounces@xxxxxxxxxxxx
> > 08/29/2005 04:43 PM
> > Please respond to
> > Websphere Development Studio Client for iSeries
> >
> >
> > To
> > Websphere Development Studio Client for iSeries
> > cc
> >
> > Subject
> > Re: [WDSCI-L] cl formatting
> >
> >
> >
> >
> >
> >
> > Rob
> >
> > That looks reasonable - your original had no "+" signs? Then it was not
> > valid yet, right? Adding the first one just got it right up to a point.
> > Adding the next one finished it off.
> >
> > Now the real issue is, what are your settings in Preferences? In
> > particular, go to Windows->Preferences, then go down to Remote
> > Systems->iSeries->LPEX Editor Parsers->CL and let us know what your
> > settings are.
> >
> > It is a bit odd that WDSC let you enter all that without protest, but
> > maybe you have syntax checking turned off.
> >
> > Vern
> >
> > -------------- Original message --------------
> >
> > > wdsc 6
> > >
> > > I prompted a cl command in a 5250 program and it looked like
> > > OVRPRTF FILE(QPJOBLOG)
> > > HOLD(*YES)
> > > USRDTA(&USER)
> > > USRDFNDTA('MAILTAG(01000000000000OPERATIONS)')
> > >
> > > I pasted that into wdsc
> > >
> > > I put a plus sign at the end of the first line and hit the down arrow.
>
> > It
> > > automatically changed it to
> > > OVRPRTF FILE(QPJOBLOG) HOLD(*YES)
> > > USRDTA(&USER)
> > > USRDFNDTA('MAILTAG(01000000000000OPERATIONS)')
> > >
> > > Another plus sign and another down arrow and I get
> > > OVRPRTF FILE(QPJOBLOG) HOLD(*YES) USRDTA(&USER)
> > > USRDFNDTA('MAILTAG(01000000000000OPERATIONS)')
> > >
> > > Rob Berendt
> > > --
> > > Group Dekko Services, LLC
> > > Dept 01.073
> > > PO Box 2000
> > > Dock 108
> > > 6928N 400E
> > > Kendallville, IN 46755
> > > http://www.dekko.com
> > >
> > > --
> > > This is the Websphere Development Studio Client for iSeries (WDSCI-L)
> > mailing
> > > list
> > > To post a message email: WDSCI-L@xxxxxxxxxxxx
> > > To subscribe, unsubscribe, or change list options,
> > > visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> > > or email: WDSCI-L-request@xxxxxxxxxxxx
> > > Before posting, please take a moment to review the archives
> > > at http://archive.midrange.com/wdsci-l.
> > --
> > This is the Websphere Development Studio Client for iSeries (WDSCI-L)
> > mailing list
> > To post a message email: WDSCI-L@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> > or email: WDSCI-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/wdsci-l.
> >
> > --
> > This is the Websphere Development Studio Client for iSeries (WDSCI-L)
> mailing
> > list
> > To post a message email: WDSCI-L@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> > or email: WDSCI-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/wdsci-l.
> --
> This is the Websphere Development Studio Client for iSeries (WDSCI-L)
> mailing list
> To post a message email: WDSCI-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> or email: WDSCI-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/wdsci-l.
>
> --
> This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing
> list
> To post a message email: WDSCI-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> or email: WDSCI-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.