Page 1 of 1

"DATA SET NOT FOUND" by JCL job

PostPosted: Wed Nov 15, 2017 5:30 am
by FAB64
Hi all,

Another very basic problem, I'm sure. I have written a JCL that uses a sequential file (that I manually) created, as input. When the JCL runs, it gives the message "DATA SET <my input file name> NOT FOUND". I'm assuming that I created my file incorrectly(?).

I manually created this file by entering 3,2 in ISPF, then A for allocate. I then used Edit (option 2 in ISPF) to add 10 records to the file, then SAVEd it.

If I enter 3,4 in ISPF, my input file is not listed. However, if I enter 1 (View), then enter the name under “Other partitioned, Sequential or VSAM Data Set”, it will list the file. Does this mean my file is not cataloged? And, if so, how do I create it so it’s cataloged. I tried option 3,2 in ISPF to catalog it (option C), but got an error.

Any help would be much appreciated, thanks!!

Roger

Re: "DATA SET NOT FOUND" by JCL job

PostPosted: Wed Nov 15, 2017 5:59 am
by prino
I'm pretty sure I know what the problem is, but it's much more fun to let you sweat on it for a bit longer.

Hint: Look at the dataset name when you View it...

Re: "DATA SET NOT FOUND" by JCL job

PostPosted: Wed Nov 15, 2017 12:25 pm
by enrico-sorichetti
prefix oh prefix !

Re: "DATA SET NOT FOUND" by JCL job

PostPosted: Wed Nov 15, 2017 6:22 pm
by steve-myers
I was thinking the same thing, then found Prino's message, and decided to leave the whole mess alone.

Re: "DATA SET NOT FOUND" by JCL job

PostPosted: Thu Nov 16, 2017 2:12 am
by FAB64
Ok, thanks guys! My UserID got prefixed to the file name that I created. I was able to rename it by surrounding the file name with single quotes. I'm guessing I should have done this when I initially created it(?). Thanks again.