Using SAVOBJ in a CL program

pts.
Tags:
Programming Languages
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Just remove the apostrophe in the OBJ field – it should be “SAVOBJ OBJ(AUDCHK AUDCHK AUDIT AUDITBFG AUDITLEB AUDITWAL AUDSHIP AUDTEST BASSINV BLDSAVOBJ BUILDWORK COMPUT CPYDBF CPYFRMURL……..”

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following