Exception in thread "main" java.util.NoSuchElementException: No line found

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Archana
Posts: 9
Joined: Thu Dec 11, 2014 12:47 am

Exception in thread "main" java.util.NoSuchElementException: No line found

Post by Archana »

Hi all,

I have my java program (getting input from user and displaying it) compiled in zLinux and it is working fine.
Now i need to run this from z/OS by passing the input ..
//MYLIB JCLLIB ORDER='COZUSER.COZ.SAMPJCL'
//STEP1 EXEC PROC=COZPROC,ARGS='coz@Linux'
//STDIN DD *
cd /root/Desktop
java UserInput
//

where should I give the input ??
can anyone help me in this....
Archana
Posts: 9
Joined: Thu Dec 11, 2014 12:47 am

Re: Exception in thread "main" java.util.NoSuchElementException: No line found

Post by Archana »

I got the answer.. just gave the input below to java GetInput .. It worked
Post Reply