Re: Reformat macro?

Vern Hamberg <vhamberg-Ebbh53c6wcYkzXN11fiE55igCaZBIYHkAL8bYrjMMd8@public.gmane.org>
Newsgroups gmane.comp.systems.as400.code
Message-ID <5.1.0.14.2.20030620152247.023ee648@mail.centerfieldtechnology.com>
John, I wondered whether I'd been clear enough.

I want to take the following

:p.The CFGDSKHTR command is used to set
run-time control values for the STRDSKHTR
(referred to as the Monitor) and CHKDSKSPC
(referred to as the
Checker) commands.

and have it reformatted to

:p.The CFGDSKHTR command is used to set run-time control values for the
STRDSKHTR (referred to as the Monitor) and CHKDSKSPC (referred to as the
Checker) commands.

This assumes an 80-character record, leaving a blank in position 80 - or 
not, for UIM.

BTW, :p. is a tag for a paragraph.

I suppose it could concatenate the lines together with a blank between 
each, then substring to word breaks. Actually, REXX could handle that 
pretty well. I think, with its WORDS() and WORD() functions. Then put the 
new lines back where the original ones were.

Does that make more sense?

Thanks

Vern

At 12:03 PM 6/20/2003 -0700, you wrote:
>Vern:
>
>I'm not picturing in my mind exactly what you are asking for but maybe 
>this will help.
>
>It sounds like you want to position your cursor to a column (editor 
>command cursorpos xx), go to the previous word (shift-left arrow) and 
>split the line (Alt-S).
>
>
>>From: Vern Hamberg <vhamberg-Ebbh53c6wcYkzXN11fiE55igCaZBIYHkAL8bYrjMMd8@public.gmane.org>
>>Reply-To: CODE/400 Discussion & Support <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>
>>To: code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]
>>Subject: Reformat macro?
>>Date: Fri, 20 Jun 2003 11:42:46 -0500
>>
>>Y'all
>>
>>Is there a macro or built-in function that will reformat source lines? I 
>>need it for editing UIM help. I want to avoid a lot of manual steps using 
>>ALT-S and ALT-J and keeping track of record length.
>>
>>It'd need to break the selected lines at word breaks.
>>
>>I can do this easily in TextPad. Probably other editors can, too.
>>
>>TIA
>>
>>Vern


_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.