For Programmers: Free Programming Magazines  


Home > Archive > Cobol > March 2007 > Re: What do the CNTL and PRINTDEV statements do? (WAS: Are JCL questions on topic her









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: What do the CNTL and PRINTDEV statements do? (WAS: Are JCL questions on topic her
harsha

2007-03-22, 9:55 pm

On Mar 21, 3:31 pm, "Oliver Wong" <o...@castortech.com> wrote:
> "William M. Klein" <wmkl...@nospam.netcom.com> wrote in messagenews:A1FLh.333956$PW4.255107@fe03.news.easynews.com...
>
>
>
>
>
>
> Yes, it does help. Seems like PRINTDEV is used to specify a (hardware)
> printing device. I'm still not clear on the CNTL and ENDCNTL statements,
> though the second page makes it sound like in the particular example I
> posted, it's just necessary punctuation to make PRINTDEV work.
>
> - Oliver


We Use the CNTL parameter to reference a CNTL statement that appears
earlier in the job. The reference causes the subsystem to execute the
program control statements within the referenced CNTL/ENDCNTL group.
The system searches for an earlier CNTL statement with a label that
matches the label in the CNTL parameter. If the system finds no match,
the system issues an error message.

In your JCL statement,
//CALLER DD UNIT=3800-3,CNTL=*.ABLE

Here '*' is 'Referback operator' - for the definition of CNTL it
refers back to the Label ABLEA.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com