I have a CL program that is reading an OUTFILE (which contains a list of objects (object types of *PGM)) and stringing these objects together into the OBJ field of a SAVOBJ command. When I run the CL it gives me an error and the joblog shows:
"SAVOBJ OBJ('AUDCHK AUDCHK AUDIT AUDITBFG AUDITLEB AUDITWAL AUDSHIP AUDTEST BASSINV BLDSAVOBJ BUILDWORK COMPUT CPYDBF CPYFRMURL........"
Value 'AUDCHK AUD' for OBJ not a name or generic name.
Error found on SAVOBJ command.
I am using the *BCAT to string the objects together, but it seems (from the error message) that the program is expecting each object name to be the length of 10 characters even though some are not (i.e. the first object named "AUDCHK")
Has anyone ever tried to do this with the SAVOBJ command in a CL program? Can you give me any ideas as to what I am doing wrong. The SAVOBJ command doesn't call for a comma between object names, only one space which I am giving it with the *BCAT.
Thanks for any help anyone can provide.