Re: Code page for Java on USS
On Wed, Apr 21, 2010 at 8:07 PM, Kirk Wolf wrote: > This isn't necessarily what the OP asked - but I would suggest that > you don't want to put your Java source code on z/OS anyway! Much > better IMO is to code, compile, and even remotely debug your z/OS Java > code on your workstation. An IDE like Eclipse (which is free) makes > this a far superior alternative to developing code on z/OS. The > "JZOS Cookbook" on http://www.alphaworks.ibm.com/tech/zosjavabatchtk > is available to help you get started. Eclipse will integrate with > your favorite SCCS, which might be hosted on z/OS or more likely > another platform.It is really not necessary to compile your Java > code on z/OS; you can have an IDE like Eclipse compile "as you type" > and then simply transfer binary class files or jars to z/OS for > execution. The JZOS Cookbook comes with a sample project that > includes Ant scripts that will build and deploy your project to z/OS > in one click. > > BTW - the codepage used by your terminal emulator to display Java > characters isn't really related to running or compiling Java. > Java internally *always* use UTF for characters and strings, so > encoding is really only an issue when it comes to getting data in and > out of Java. As John mentioned, -Dfile.encoding sets the *default* > character set used by Java when converting from bytes to/from UTF > strings, but Java code can easily use a different encoding on a > file-by-file basis. > > Regards, > > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > ( and IBM JZOS Development) > > > Thanks for that information. I'll certainly take a look at the JZOS cookbook as we are about to embark on more Java development. Jim McAlpine -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
This isn't necessarily what the OP asked - but I would suggest that you don't want to put your Java source code on z/OS anyway! Much better IMO is to code, compile, and even remotely debug your z/OS Java code on your workstation. An IDE like Eclipse (which is free) makes this a far superior alternative to developing code on z/OS. The "JZOS Cookbook" on http://www.alphaworks.ibm.com/tech/zosjavabatchtk is available to help you get started. Eclipse will integrate with your favorite SCCS, which might be hosted on z/OS or more likely another platform.It is really not necessary to compile your Java code on z/OS; you can have an IDE like Eclipse compile "as you type" and then simply transfer binary class files or jars to z/OS for execution. The JZOS Cookbook comes with a sample project that includes Ant scripts that will build and deploy your project to z/OS in one click. BTW - the codepage used by your terminal emulator to display Java characters isn't really related to running or compiling Java. Java internally *always* use UTF for characters and strings, so encoding is really only an issue when it comes to getting data in and out of Java. As John mentioned, -Dfile.encoding sets the *default* character set used by Java when converting from bytes to/from UTF strings, but Java code can easily use a different encoding on a file-by-file basis. Regards, Kirk Wolf Dovetailed Technologies http://dovetail.com ( and IBM JZOS Development) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
> -Original Message- > From: IBM Mainframe Discussion List > [mailto:ibm-m...@bama.ua.edu] On Behalf Of Jim McAlpine > Sent: Wednesday, April 21, 2010 10:09 AM > To: IBM-MAIN@bama.ua.edu > Subject: Code page for Java on USS > > I'm in the initial throes of setting up an environment to run > Java UDFs in > DB2 for z/OS and I'm getting hit by the square brackets > problem when trying > to compile a small Java program. How and where do I set the > code page so I > get the correct square brackets. Code page 1047 rings a > vague bell, but > where do I set that up. > > Thanks > > Jim McAlpine "-Dfile.encoding=IBM-1047" on the Java command line if the input files are in IBM-1047. This is a run-time option, not a compile option! And it can also be set in the "properties" file. refs: http://java.sun.com/docs/books/tutorial/essential/io/file.html for compiling: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html Also set your terminal emulator to IBM-1047 (Latin-1 may work) also. Why not just compile on your desktop and do a BIN ftp up to z/OS? I've done this successfully in the past. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Jim McAlpine Sent: Wednesday, April 21, 2010 10:30 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Code page for Java on USS On Wed, Apr 21, 2010 at 4:15 PM, Thompson, Steve < steve_thomp...@stercomm.com> wrote: > > If you are using ISPF, then USS is probably not your problem (either > Unix System Services OR VTAM's Unformatted System Services). The problem > may be a translate table used by VTAM or within your 3270 emulator > package. > > And no, I'm not being pedantic here, USS is misleading in this case -- > insufficient context. > > Regards, > Steve Thompson > > I thought that might get a bite somehow. Anyhow the problem is sorted thanks, I just needed to FTP the program with the correct code page. Just a touch of old timers disease again. Unfortunately, your clarification posting and my reply crossed. Gotta love these code page migraines (long story, having issues with them here -- including curly braces, DBCS, etc.). Regards, Steve Thompson -- Opinions expressed by this poster may not reflect those of poster's employer -- -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Fwd: Code page for Java on USS
On Wed, Apr 21, 2010 at 4:15 PM, Thompson, Steve < steve_thomp...@stercomm.com> wrote: > > If you are using ISPF, then USS is probably not your problem (either > Unix System Services OR VTAM's Unformatted System Services). The problem > may be a translate table used by VTAM or within your 3270 emulator > package. > > And no, I'm not being pedantic here, USS is misleading in this case -- > insufficient context. > > Regards, > Steve Thompson > > I thought that might get a bite somehow. Anyhow the problem is sorted thanks, I just needed to FTP the program with the correct code page. Just a touch of old timers disease again. Jim McAlpine -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
On Wed, Apr 21, 2010 at 4:15 PM, Thompson, Steve < steve_thomp...@stercomm.com> wrote: > > If you are using ISPF, then USS is probably not your problem (either > Unix System Services OR VTAM's Unformatted System Services). The problem > may be a translate table used by VTAM or within your 3270 emulator > package. > > And no, I'm not being pedantic here, USS is misleading in this case -- > insufficient context. > > Regards, > Steve Thompson > > I thought that might get a bite somehow. Anyhow the problem is sorted thanks, I just needed to FTP the program with the correct code page. Just a touch of old timers disease again. Jim McAlpine -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
On Wed, Apr 21, 2010 at 4:11 PM, Jim McAlpine wrote: > On Wed, Apr 21, 2010 at 4:08 PM, Jim McAlpine wrote: > >> I'm in the initial throes of setting up an environment to run Java UDFs in >> DB2 for z/OS and I'm getting hit by the square brackets problem when trying >> to compile a small Java program. How and where do I set the code page so I >> get the correct square brackets. Code page 1047 rings a vague bell, but >> where do I set that up. >> >> Thanks >> >> Jim McAlpine >> > > BTW, I'm running the javac in the TSO OMVS shell. > > > Jim McAlpine > > -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Jim McAlpine Sent: Wednesday, April 21, 2010 10:09 AM To: IBM-MAIN@bama.ua.edu Subject: Code page for Java on USS I'm in the initial throes of setting up an environment to run Java UDFs in DB2 for z/OS and I'm getting hit by the square brackets problem when trying to compile a small Java program. How and where do I set the code page so I get the correct square brackets. Code page 1047 rings a vague bell, but where do I set that up. If you are using ISPF, then USS is probably not your problem (either Unix System Services OR VTAM's Unformatted System Services). The problem may be a translate table used by VTAM or within your 3270 emulator package. And no, I'm not being pedantic here, USS is misleading in this case -- insufficient context. Regards, Steve Thompson -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Code page for Java on USS
On Wed, Apr 21, 2010 at 4:08 PM, Jim McAlpine wrote: > I'm in the initial throes of setting up an environment to run Java UDFs in > DB2 for z/OS and I'm getting hit by the square brackets problem when trying > to compile a small Java program. How and where do I set the code page so I > get the correct square brackets. Code page 1047 rings a vague bell, but > where do I set that up. > > Thanks > > Jim McAlpine > BTW, I'm running the javac in the TSO OMVS shell. Jim McAlpine -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Code page for Java on USS
I'm in the initial throes of setting up an environment to run Java UDFs in DB2 for z/OS and I'm getting hit by the square brackets problem when trying to compile a small Java program. How and where do I set the code page so I get the correct square brackets. Code page 1047 rings a vague bell, but where do I set that up. Thanks Jim McAlpine -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html