I need something like this post, but I have several libraries and objects to be cataloged, but I cannot use catall *, because there are many other objects in the libraries and I dont want to have any changing on the rest of the objects; I need CTL file.
I did a similar program, but it seems that the objects are cataloged, but when there are any errors, nothing is written in the CTL file. If I have just one lib and object, and there is a error, the information is written on CTL file.
according to my test, the catall process is working as it should, the problem is that CTL file is replaced for each value of object, but the objects are cataloged. As I need CTL file for my control, I think that the best idea is to unload the objects to a new library, to use the catall process, and then to move the objects to the correct library. Only this way I can have the complete CTL file.
If someone have any other suggestion or idea, it would be great.
I am afraid to say but it didnt work. Have you already executed it before?
I have a sequencial file with objects and libraries names. So, I need to catalog one by one, and I also need to have CTL file to check after if it is ok or not. I am understanding that each time that Catall is issued, the CTL file is replaced.
This worked for me. It appears that the Natural LOGON re-opens CMPRINT. Invoking Naturakl for each library lets us copy/concatenate CMPRINT before Natural overwrites it. It will work equally well whether you specify one or multiple CATALLs per step.
NEXT LOGON lib1
Logon accepted to library lib1.
NEXT CATALL DSUBR CHECK
Library lib1
CATALL DSUBR,CHECK
Object Error Error-line
------------------------------------ ------- ----------
Number of objects cataloged: 0001
Number of errors detected: 0000
NEXT CATALL DSUBP CHECK
Library lib1
CATALL DSUBP,CHECK
Object Error Error-line
------------------------------------ ------- ----------
DSUBP 0082 0020
Number of objects cataloged: 0001
Number of errors detected: 0001
NEXT FIN
NAT9995 Natural session terminated normally.
NEXT LOGON lib2
Logon accepted to library lib2.
NEXT CATALL DPROG CHECK
Library lib2
CATALL DPROG,CHECK
Object Error Error-line
------------------------------------ ------- ----------
DPROG 0082 0020
Number of objects cataloged: 0001
Number of errors detected: 0001
NEXT CATALL DUPE CHECK
Library lib2
CATALL DUPE,CHECK
Object Error Error-line
------------------------------------ ------- ----------
NAT4867 Nothing found for this request.
NEXT FIN
NAT9995 Natural session terminated normally.
the result is a little bit different than CTL file, but it could be this way, however, when I have any error (there is an object with a syntaxe error), I receive NAT4867, as you receive when the object doesnt exist in the library. I have double checked it, and the object exist. - if I catalog it online, it works. Any idea what is wrong?
Yes, I’ve experienced the NAT4867, but I can’t explain it. Today I re-ran my script, having made no changes to it, and it worked. That is, it found module DUPE.
according to some problem posted at empower, nat4867 would be solved in previous nat versions; however, I think it was not solved it. Do you think that it is still a bug? Is there any workaround?