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 <[email protected]> An: [email protected] Datum: 2012-05-18 13:50 Betreff: JZOS unexpected type Gesendet von: IBM Mainframe Discussion List <[email protected]> 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 [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

