import java.io.BufferedReader; import java.io.FileReader; import java.util.ResourceBundle; import com.ibm.as400.access.AS400; import com.ibm.as400.access.CommandCall; public class ExecCl { static String system = null; static String user = null; static String password = null; static AS400 _as400 = null; static CommandCall _command = null; /** * @param args */ public static void main(String[] args) { if (args.length != 1) { System.err.println("°ú¿ô¤¬Â¤ê¤Þ¤»¤ó"); return; } FileReader fr = null; BufferedReader br = null; try { fr = new FileReader(args[0]); br = new BufferedReader(fr); String str = ""; ResourceBundle props = ResourceBundle.getBundle("ExecCl"); system = props.getString("system"); user = props.getString("user"); password = props.getString("password"); _as400 = new AS400(system,user,password); _command = new CommandCall(_as400); while ((str = br.readLine()) != null) { if ( _command.run(str)) System.out.println(str+":Àµ¾ï"); else System.out.println(str+":°Û¾ï"); } } catch (Exception ex) { ex.printStackTrace(); } finally { try { br.close(); } catch (Exception ex2) { ex2.printStackTrace(); } } } }
¤³¤Î¥Ú¡¼¥¸¤Ø¤Î¥³¥á¥ó¥È
hFbah0 A round of applause for your blog article.Thanks Again. Keep writing.