I tried using LISTCAT level commang but it is returning RC code as 0000 for everything. I need to copy all the versios of GDG into another GDG is versions exists. This is throwing a JCL error is versions are not present. Can somebody please guide?
Joined: 24 Jul 2011 Posts: 651 Location: Down on the pig farm
Posted: Thu May 01, 2014 1:12 pm Post subject:
The LISTCAT gives a return code of zero as it successfully undertook the task assigned to it. no datasets to list? No problem, do not list - success! Could not read the catalog? Woops - error! If you are going down the listcat route you need to write the output to a dataset, write a program to analyze that dataset and issue a return code based on the analysis. The next step would run/not run dependent on that return code.
I presume you mean generation and not version - the bit after the V in GxxxxVxx is the version wheras Gxxxx is the generation. Also no JCL error was "thrown" - things are not "thrown" on the mainframe. Your job may have failed with a JCL error. _________________ Regards
Joined: 09 Aug 2008 Posts: 1631 Location: Mumbai, India
Posted: Mon May 12, 2014 12:01 pm Post subject:
This is throwing a JCL error is versions are not present.
From memory - you should get a RC=4, if the GDG Base exists and not an error. Can you please show us the error you are getting.
ALSO, you've replied to a 5 year old post - it's usually better to start a new thread with your question and in doing so you might refer back to the previous post you've looked at otherwise your own question get mingled with the original question of previous thread and you might not get a direct answer to your question. _________________ Regards,
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum