add this step at appropriate position in your JOB2
//step1 exec pgm=idcams
//sysprint dd sysout=*
//sysin dd *
listcat entries('dataset name')
/*
IDCAMS returns 4 when the dataset does not exists.
Use conditional parameters in further steps to use this..
Search found 2 matches
- Thu Sep 06, 2007 4:19 pm
- Forum: JCL
- Topic: need to check a GDG generation is present in catalog or not
- Replies: 7
- Views: 20446
- Fri Aug 25, 2006 12:59 pm
- Forum: COBOL
- Topic: What are all the COBOL compilers available?
- Replies: 6
- Views: 25932
Different compilers are also available
In our shop we use compuware compiler, it is CWPCMAIN and linkeditor is IEWBLINK.