ALCOBJ scope

365 pts.
Tags:
ALCOBJ
Allocate Object
CL
CL/400
JOB scope
THREAD scope
I want to allocate the data area by using ALCOBJ command and I am confused about the in selecting the scope. Can anyone explain me about the difference between JOB scope and THREAD scope in details?

Answer Wiki

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

Hi Frmdeva

From your question, it seems that you might not know
what a THREAD is.

“a thread of execution is a fork of a computer program into two or more concurrently running tasks. ”
Wikipedia

A job turns into a number of simultaneous jobs that might be synced. This is a Web Sphere, Java, C type process.

So it you’re working in AS/400 native stuff – CL/COBOL/RPGLE you would allocate *JOB.
That lock would be in place until the job ends or issues a DCLOBJ command.

If a job allocates an object, one of the threads of the job can lock it down further so that no other thread or other job can use it.

Phil

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