× 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.



Terry,

Not a problem I actually had the day off myself, so I'm just catching
up. I'm sorry this has turned into such a long discussion and hope it
has not wasted to much of anyone's time.

I finally just read the input IFS file (one char at a time) and replace
the "<" with the "crlf + <". Yes it is not the best, but it is no worse
than the Delphi program has been in place for about 4 years. If I was
given the time and go ahead I would replace this whole job stream with
something more XML friendly in design, but such is life.

...

On the "sed" command running from 'QSH CMD()', would anyone know how
would I set the CCSID to be something other than default I get from
executing this command in RPG via QCMDEXC or is there a way?

I played around with it some interactively and figured out I could run
the command "QSH" and then at its command line do a QIBM_CCSID = 819
and change the CCSID for that execution. But if I tried to do 'QSH
CMD(QIBM_CCSID = 819)' It didn't like that at all.

I would think there would be a way to change the "QSH" default CCSID for
just this job. Since I'm not Unix savvy and this is where the two
worlds tend to bluer together, I couldn't find it. If I could have set
the right CCSID I might have been able to get "sed" to work well enough
for what I needed anyway.

Thanks for all the suggestions, and to everyone else for putting up
saga.

-- Jim
------------------------------

message: 8
date: Tue, 16 Feb 2010 10:15:09 -0500
from: Terrence Enger <tenger@xxxxxxxxxxxxxxxx>
subject: Re: Replace 1 Char with 3Char's

The sheer length of this thread reinforces my preexisting prejudice in
favour of "contracting out" any XML parsing to a tool designed for the
job. I wonder, Jim, if producing your desired output from a parsed
representation of the input would be any more work than the effort you
have already spent on adhocery? And then, which strategy would give you
more confidence in the result?

(Yesterday was a holiday in Canada. Feel free to attribute this message
to the moral equivalent of Monday-morning grumpiness :)

Cheers,
Terry.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.