Hold parameter in batch job

10 pts.
Tags:
AS/400 batch jobs
AS/400 Parameters
V5R3
why should we give the hold paramater (*yes) in a batch job? please let me the what is a a batch job?

Software/Hardware used:
v5r3db2,rpgle

Answer Wiki

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

On SBMJOB command, By default HOLD keyword holds system default value ‘*JOBD’

<pre>Inquiry message reply . . . . . *JOBD *JOBD, *RQD, *DFT, *SYSRPYL
Hold on job queue . . . . . . . *JOBD *JOBD, *NO, *YES
Schedule date . . . . . . . . . *CURRENT Date, *CURRENT, *MONTHSTR…</pre>

The parameter ‘*YES’ refers to keep the Job in Hold status after submitting to batch.
The parameter ‘*NO’ will not keep the Job in Hold status as soon as it enters to batch, it will be in Active mode.

Pradeep.

Discuss This Question: 6  Replies

 
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
  • CharlieBrowne
    Regarding the question "what is a batch job"? In the simplest form, if you are keying in information, that is call interactive. It you want something to run at a later time and without human intervention, you submit that job to a job queue and have it run in BATCH.
    41,370 pointsBadges:
    report
  • WoodEngineer
    Many shops run reports and big update jobs in batch. This keeps the interactive subsystem available to quickly respond when users press the "Enter" key. The operating system applies processing efficiencies to batch jobs which is another benefit of submitting to batch when no operator interventions is needed.
    6,355 pointsBadges:
    report
  • Yorkshireman
    As to why you would hold a job, well, duringthe day users press a command key that submits a job as held into a job Q at night, when they all go home, the system releases the jobs and does the work.
    5,580 pointsBadges:
    report
  • Paul102042
    Holding a batch job is necessary when you want to debug an ILE program in batch. When doing that you need to STRSRVJOB on the held batch job. Then after STRDBG on your program, you release the job.
    15 pointsBadges:
    report
  • TomLiotta
    Holding a batch job is necessary when you want to debug an ILE program in batch. This hasn't been true for quite some time. Setting a service entry point can eliminate a need to put batch jobs on hold for debugging. Tom
    125,585 pointsBadges:
    report
  • Batchjob
    [...] 4. Deepu9321, CharlieBrowne, WoodEngineer, Yorkshiremen, Paul102042, and TomLiotta are chipping in on a question about holding a parameter in batch job. [...]
    0 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