cobol and jcl name standard?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

cobol and jcl name standard?

Postby leon » Thu Feb 05, 2009 9:30 pm

about the syntax in cobol:
select xxx assign to name-cobol,
I wonder if name cobol must be the same with the name in jcl or others rule for
the name standard?

the below is my example:

this is my code for cobol:
*--------------------*
       INPUT-OUTPUT SECTION.
      *--------------------*

       FILE-CONTROL.
           SELECT INPUT-T5-FILE        ASSIGN TO UT-S-T5FILE.
           SELECT OUTPUT-BN-FILE       ASSIGN TO UT-S-BNFILE.
           SELECT OUTPUT-NOBN-FILE     ASSIGN TO UT-S-NOBNFILE.
           SELECT OUTPUT-NGF-FILE      ASSIGN TO UT-S-NGFFILE.


this is my code for JCl:
 //BNFILE   DD  DSN=MP.UMP9LFC.VALIDBN,DISP=(NEW,CATLG,KEEP),   
 //             UNIT=SYSDA,                                     
 //             SPACE=(TRK,(1,1),RLSE)                         
 //NOBNFILE DD  DSN=MP.UMP9LFC.NOBN,DISP=(NEW,CATLG,KEEP),     
 //             UNIT=SYSDA,                                     
 //             SPACE=(TRK,(1,1),RLSE)                         
 //NGFFILE  DD  DSN=MP.UMP9LFC.NFG,DISP=(NEW,CATLG,KEEP),       
 //             UNIT=SYSDA,                                     
 //             SPACE=(TRK,(1,1),RLSE)   


UT-S-BNFILE and BNFILE are different name, but why do the JCL run succesfull?
thank you.
leon
 
Posts: 40
Joined: Tue Nov 25, 2008 7:39 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol and jcl name standard?

Postby dick scherrer » Fri Feb 06, 2009 1:08 am

Hello,

UT-S-BNFILE and BNFILE are different name
No, they're not. Those are the same name. . . ;) Whatever comes after the "ut-s-" must be the ddname and that is what is posted.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: cobol and jcl name standard?

Postby leon » Fri Feb 06, 2009 7:57 pm

thank you very much! Mr. D
leon
 
Posts: 40
Joined: Tue Nov 25, 2008 7:39 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol and jcl name standard?

Postby dick scherrer » Sat Feb 07, 2009 1:38 am

You're welcome :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: cobol and jcl name standard?

Postby chetan_007 » Wed Feb 18, 2009 11:24 pm

In the above example if UT-S-BNFILE and BNFILE are same.
Then what's the necessity to use UT-S-BNFILE, instead always we can use BNFILE only as DD name right???
chetan_007
 
Posts: 24
Joined: Sun Mar 02, 2008 3:22 am
Has thanked: 0 time
Been thanked: 0 time

Re: cobol and jcl name standard?

Postby dick scherrer » Thu Feb 19, 2009 1:20 am

Hello,

we can use BNFILE only as DD name right
The compiler will let you for ut-s- files, but your organization may have coding standards that do not accept the short form. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post