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



Thanks, Scott and Chuck for equivalent answers on the linefeed translation. :( I replaced \n with \45 (45 base 8 = 25 base 16), and while I also don't like the solution, at least it could be implemented in that manner with least pain (there were myriad occurrences of \n in this program).

Scott, w.r.t. comping for AIX: didn't know that! Disappointing (primarily since [I think] one cannot compile RPG for AIX), but I can also live with this.

Thanks for hanging in there with me!

"Scott Klement" <midrange-l@xxxxxxxxxxxxxxxx> wrote:

I don't really like the solution, but...

printf("Hello, world.%c", 0x25) ;

The "permission denied" message makes me wonder if you compiled it as a

native *PGM object instead of using an AIX compiler. PASE cannot run
native programs. (Though, QShell can run both native and AIX... that
might be why you are confused.)



On 3/10/2011 7:35 AM, Dennis Lovelady wrote:
No takers? (Other than Chuck - thanks, Chuck, but \r\n didn't really
have a positive effect; nor did \r. No surprises there.)

To summarize the two questions:
- What CCSID should be used to cause printf("\n") to write a
new-line
character (0x0a) at V5R3?
- What would cause a "permission denied" error in PASE when
trying to
execute a program in V5R3 that I own - a program that I can execute
successfully in QSH?

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
Sent from my Galaxy tablet phone with with K-9 Mail. Please excuse my brevity.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.