FileFactorycopy - file not found exception

General discussion on the JZOS batch launcher and toolkit
Post Reply
govindpalle
Posts: 2
Joined: Mon Apr 28, 2008 5:45 pm
Location: India

FileFactorycopy - file not found exception

Post by govindpalle »

Hi,

I am new to JZOS and trying to execute few sample programs like Failfactorycopy... I was able to copy the file from HFS to HFS..
The argument I gave was:
ARGS='/SYSTEM/tmp/test1 /SYSTEM/tmp/test2'

The above one works fine... but when I try to copy from MVS dataset to another, it doesn't. It gives 'File not found exception error'... The arguments in this case:
ARGS='HIGHLE.TEST.DUMMY1 HIGHLE.TEST.DUMMY2'

I also tried...

ARGS='//HIGHLE.TEST.DUMMY1 //HIGHLE.TEST.DUMMY2'

ARGS='DD://INPUT DD://OUTPUT'

which did not help... Please let me know if I need to set or do something.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Using the syntax for dataset names, the name must be enclosed in single quotes. Otherwise, the current userid is automatically prefixed as the high-level qualifier. See the javadoc for ZFile and the C-library documentation for fopen() for more information.

So you would probably need something like:

ARGS='//''HIGHLE.TEST.DUMMY1'' //''HIGHLE.TEST.DUMMY2'''

(all single quotes above)
govindpalle
Posts: 2
Joined: Mon Apr 28, 2008 5:45 pm
Location: India

Post by govindpalle »

It's worked with a little change... it took the Highlevel by default.... Thanks for pointing to Javadocs.

ARGS='"//TEST.DUMMY1" "//TEST.DUMMY2"'
Post Reply