While compiling, RENT on IGYCRCTL versus HEWL.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
durga
Registered Member
Posts: 53
Joined: Mon Jul 01, 2013 3:28 pm

While compiling, RENT on IGYCRCTL versus HEWL.

Post by durga »

Hi,

We had been using a home grown CLIST to compile the COBOL programs of all sort. Now we have a new SCM tool coming in. we want to make sure that the compile JCL created by the CLIST and the new tool are same.

While testing I found out that for a batch COBOL program these were the options:

CLIST:
IGYCRCTL: NOOPT,DATA(31),RENT
HEWL: LIST, LET, MAP, XREF, AMODE=31, RMODE=ANY, CALL

Tool:
IGYCRCTL: NOOPT,DATA(31)
HEWL: LIST, LET, MAP, XREF, AMODE=31, RMODE=ANY, RENT

Noe, RENT is at IGYCRCTL in CLIST while in tool it is at HEWL (link/binder), will this make a difference?

I looked at these documents: https://www.ibm.com/support/knowledgece ... up0057.htm

https://www.ibm.com/support/knowledgece ... cllexx.htm

but still trying to confirm it. If someone can guide on this, that would be great.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by Robert Sample »

Noe, RENT is at IGYCRCTL in CLIST while in tool it is at HEWL (link/binder), will this make a difference?
It can make a difference. Whether or not it actually does, though, is a different question. If the default compile option is RENT, then the tool not specifying it would not matter. If the default compile option is NORENT, though, then the COBOL compiler will NOT generate a reentrant object module and that would impact the linkage editor / binder since it would not be able to create a reentrant load module from nonreentrant object modules.

Your best bet would be to work with your site support group on the issue and find out what they have the compiler defaults set to. The default is RENT, but that can be changed by site options.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by enrico-sorichetti »

there is no relation whatsoever between the compiler and binder RENT parm

for cobol it will make a difference in the machine code being generated,

for assembler
RENT
Specifies that the assembler checks for possible coding violations of program reenterability. Non-reenterable code is identified by an error message, but is not exhaustively checked because the assembler cannot check the logic of the code. Therefore, the assembler might not detect all violations of program reenterability.
IIRC the linkage editor / binder will just apply the requested attributes
it does not have any way to determine if the thing being bound is really reentrant or not
( at least for assembler )

all will be painfully discovered at run time
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
durga
Registered Member
Posts: 53
Joined: Mon Jul 01, 2013 3:28 pm

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by durga »

I was working with the team involved in setting up the tool. They told me if the options shown the in the COBOL listing from CLIST and TOOL are same, we are good. As shown below:

Is that correct, even when the we have difference in the JCLs generated as stated in the first post?

Code: Select all

PP 5655-S71 IBM ENTERPRISE COBOL FOR Z/OS  4.2.0 
INVOCATION PARAMETERS:                           
 NOOPT,DATA(31),RENT,                            
OPTIONS IN EFFECT:                               
 NOADATA                                         
 NOADV                                           
   APOST                                         
   ARITH(COMPAT)                                 
 NOAWO                                           
 NOBLOCK0                                        
   BUFSIZE(16384)                                
 NOCICS                                          
   CODEPAGE(1140)                                
 NOCOMPILE(E)                                    
 NOCURRENCY                                      
   DATA(31)                                      
 NODATEPROC                                      
 NODBCS                                          
NODECK          
  DIAGTRUNC     
NODLL           
NODUMP          
NODYNAM         
NOEXIT          
NOEXPORTALL     
  FASTSRT       
  FLAG(W,E)     
  FLAGMIG4      
NOFLAGSTD       
  INTDATE(ANSI) 
  LANGUAGE(UE)  
  LIB           
  LINECOUNT(60) 
  LIST          
  MAP           
NOMDECK         
NONAME           
  NSYMBOL(DBCS)  
NONUMBER         
  NUMPROC(NOPFD) 
  OBJECT         
NOOFFSET         
NOOPTIMIZE       
  OUTDD(SYSOUT)  
  PGMNAME(COMPAT)
  RENT           
  RMODE(AUTO)    
NOSEQUENCE       
  SIZE(MAX)      
  SOURCE         
  SPACE(1)       
NOSQL            
  SQLCCSID       
NOSSRANGE        
 NOTERM                                             
 NOTEST                                             
 NOTHREAD                                           
   TRUNC(BIN)                                       
PP 5655-S71 IBM ENTERPRISE COBOL FOR Z/OS  4.2.0    
 NOVBREF                                            
 NOWORD                                             
   XMLPARSE(XMLSS)                                  
   XREF(FULL)                                       
   YEARWINDOW(1900)                                 
   ZWB                                              
PP 5655-S71 IBM ENTERPRISE COBOL FOR Z/OS  4.2.0    
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by nicc »

What you posted is from the compiler so how the options weere set is irrelevant as long as they are correct. The same goes for the binder.
Regards
Nic
durga
Registered Member
Posts: 53
Joined: Mon Jul 01, 2013 3:28 pm

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by durga »

I am sorry but I did not get you. You mean if the options appear in the above list, irrespective of the point whether they were supplied at compiler or binder does not matter?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by enrico-sorichetti »

irrespective of the point whether they were supplied at compiler or binder does not matter
where and how the options/parms are specified/provided DO matter

the compiler does not know about the binder and the binder does not know about the compiler

the compiler does not care about the binder options/parms
the binder does not care about the compiler options/parms
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: While compiling, RENT on IGYCRCTL versus HEWL.

Post by Anuj Dhawan »

It'd be a good idea to test the executable, after both the compilation, to verify if all works well.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”