Your post is not clear -- you want to GENERATE the error, or you RECEIVED the error? In the first case, just run a job pointing to a data set that does not exist. In the second case, define the data set.
Since you did not provide any JCL to show us what you did, that's about all we can say.
Is this now working? Do you understand why it failed?
Keep in mind that when looking for help, most of the work is yours. We can only work with what you provide, so being accurate and complete when posting your question is most important. . .