Hi, I found the problem,

In HEX(EBCDIC 1047) the brackets are AD [ and BD ], so the ! not
simbol is 5A. (In the assembler 390 ref summary guide). Then OEDIT the
java program, and edit in HEX "HX" and put 5A, also added the try and
catch as suggested by Michael, and the program was successfully
compiled and ran.

Thanks a lot,

Enrique

2012/5/18 Michael Klaeschen <michael.klaesc...@deutscherring.de>:
> In my environment, your program compiles fine. Well, I changed the square
> brackets in main definition and added the catches for IOException and
> FilenotfoundException....Ah, and I change the negation sign to !. Are you
> sure about CCSID (including tagging) of files, locale and emulation?
>
> Cheers
> Michael
>
>
>
> Von:    ENRIQUE ELOI MONTERO ROMERO
> <enriqueeloi.montero.contrac...@bbva.com>
> An:     IBM-MAIN@bama.ua.edu
> Datum:  2012-05-18 13:50
> Betreff:        JZOS unexpected type
> Gesendet von:   IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>
>
>
>
> Hi team,
>
> This time i am trying a JZOS program under OMVS.
>
> It is simple, read a text file and show each line, here is the code:
>
> import java.io.*;
> class readit
> {
>    public static void main(StringÝ~ args)
> {
> System.out.println("Prog start");
> BufferedReader bf = new BufferedReader(new FileReader("datos.txt"));
>
> String recline;
> while ((recline = bf.readLine())¬=null) {
> System.out.println(recline);
> }
> System.out.println("Prog end");
> }
> }
>
>
> but i got this message when compiling :
>
> : >javac readit.java
> readit.java:10: unexpected type
> required: variable
> found   : value
> while ((recline = bf.readLine())¬=null) {
>                ¬
> 1 error
>
>
> the "=" simbol is not a variable, i have no idea why this error
> appears, when compiling in Windows environment it goes OK, but in OMVS
> appear such error.
>
> Some ideas?
>
> Best regards,
>
> Enrique
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to