Immbedding parameters in CL program

995 pts.
Tags:
Add Job Schedule Entry
ADDJOBSCDE
CL
CLP
Hi, I am having trouble immbedding parameters in a CL program with quotes, within a ADDJOBSCDE command. See below. ADDJOBSCDE JOB(&JOB) CMD(RUNC90JOB SEQ(*SUBJB) + PGM(UN798CL) PARM('''' *TCAT &PARM *CAT + '''')) FRQ(*ONCE) + JOBD(C90FILES/QBATCHASMD) JOBQ(QPGMR) The problem is with the 4 quotes the system adds a quote after the translation, which I do not want. If I use only 3 quotesthe translation does not occur, causing other errors. I need the translation to produce the following: PARM('XXXXXXX') where XXXXXX is the value in &PARM. Can someone assist?

Answer Wiki

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

Hi,

Have you tried this command; without the quotes ?

ADDJOBSCDE JOB(&JOB) CMD(RUNC90JOB SEQ(*SUBJB) PGM(UN798CL) PARM(&PARM)) FRQ(*ONCE) JOBD(C90FILES/QBATCHASMD) JOBQ(QPGMR)

Second question, considering that the ADDJOBSCDE command above is complete, it submit a job for an immediate execution. Why don’t you simply use the SBMJOB command ?

Discuss This Question: 1  Reply

 
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
  • tjgm88
    Hi Billy, Thanks for your suggestion. Good question as to why I am not using the SUBJOB command. There is a valid reason for not using that - it is to do with the application and the method of passing parameters. Thanks anyway, I think I have worked out a way. Cheers!
    995 pointsBadges:
    report

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