when asking a question you shoulfd post the right message ( not a cofusing one as You did ),
something like
JOB08668 $HASP165 ENRICO1 ENDED AT N1 - JCL ERROR CN(INTERNAL)
the error was
JCL ERRORYou should use sdsf to look at your job output to find out the cause of the error
YOU should see something like ...
1 //ENRICO1 JOB (@),'A',NOTIFY=ENRICO,
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*
2 //G EXEC PGM=IEFBR14
3 //DD DD DISP=SHR,DSN=NOT.FOUND
...
...
...
IEF212I ENRICO1 G DD - DATA SET NOT FOUND
IEF272I ENRICO1 G - STEP WAS NOT EXECUTED.
the
IEF212I ( or something similar ) will tell the error found
the
CN(INTERNAL) does not mean an internal error
the text goes back to when HASP/JES2 used internal pseudo-consoles to write messages