MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Assembler LIST

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Fri Jan 30, 2004 2:07 pm    Post subject: Assembler LIST Reply with quote

Hi ,
I had read some place that this for a Cobol Program is created only if the CBL LIST option is used in the Program ..which can later be used for Abend analysis.
Is my understanding wrong because I am seeing that at our end this LIST is getting created even without specifying it as an option in the program.
Is it that a LIST always gets created by Default and giving CBL LIST as an Option gives some detailed listing of a different kind ??? If yes, how are these two different.
Pls. clarify.

Thnks
Vini.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Jan 30, 2004 3:39 pm    Post subject: Reply with quote

Vini,

Look at the sysprint of the job when you compile a cobol program. Typically it would like this as follows. the first line is the cobol compiler version and then followed by the complier options. The listings can be obtained with options like LIST, MAP, SOURCE. However there are few differences between the options.

Code:

PP 5655-G53 IBM Enterprise COBOL for z/OS and OS/390 3.2.0             
Invocation parameters:                                                 
NOADATA,NOEXIT,LANGUAGE(EN)                                             
PROCESS(CBL) statements:                                               
 CBL NOADV,APOST,ARITH(COMPAT),AWO,BUFSIZE(31744),NOCICS               
 CBL CODEPAGE(1140),NOCOMPILE(S),NOCURRENCY,DATA(31),NODATEPROC         
 CBL NODBCS,NODECK,NODIAGTRUNC,NODLL,NODUMP,NODYNAM,NOEXPORTALL         
 CBL FASTSRT,FLAG(I,I),NOFLAGSTD,LIB,LINECOUNT(60),NOLIST,MAP           
 CBL NONAME,NONUMBER,NUMPROC(NOPFD),OBJECT,OFFSET,NOOPTIMIZE           
 CBL OUTDD(SYSOUT),PGMNAME(COMPAT),RENT,RMODE(AUTO),NOSEQUENCE         
 CBL SIZE(MAX),SOURCE,SPACE(1),NOSQL,NOSSRANGE,NOTERM,NOTEST           
 CBL NOTHREAD,TRUNC(OPT),NOVBREF,NOWORD,XREF(FULL)                     
 CBL YEARWINDOW(1900),ZWB                                               


Check this link for a detailed explanation of the various compiler options.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/2.4?DT=20020923143836

Hope this helps...

Cheers

kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Fri Jan 30, 2004 4:06 pm    Post subject: Reply with quote

kolusu,
Is there a difference between having the LIST as a Compiler Option in JCL and including the line 'CBL LIST' before the Identification Division ..or are they one and same things ?

I did not find any SYSPRINT or reference to LIST, MAP or SOURCE in the Compile JCL ..part of the reason could be because this Compile/Build Job gets trigerred by the SCLM itself when we select 'Build Archdef' (which is for compile).

Thnks
Vini
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon Feb 02, 2004 6:12 am    Post subject: Reply with quote

Vini,

Any compiler options specified before the ID division of the program will override the compiler options provided in the JCL. So if you provide CBL LIST in the program and the JCl also had the compiler option LIST then there is no difference.

Quote:

I did not find any SYSPRINT or reference to LIST, MAP or SOURCE in the Compile JCL ..part of the reason could be because this Compile/Build Job gets trigerred by the SCLM itself when we select 'Build Archdef' (which is for compile).


How do you check for your compiler errors when you compile a program? You must be looking at the compiler listing somewhere. Usually the sysprint will have the compiler output listing.

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Mon Feb 02, 2004 5:02 pm    Post subject: Reply with quote

kolusu,

Yes we do see the Compiler listing in the BLDLIST (part of JCL output like sysprint )..and I finally did find the MAP and SOURCE options in there like you mentioned.

Earlier I was looking for them in the JCL which apparently doesnt have any such options ..but it must be picking up from something specified in the JCL..I see lots of references to CLISTs but not to Procs (surprisingly)..and apart from that IKJEFT01 and IEBGENER are being executed . Dont have much idea about CLISTS and hence their role here .. I wanted to paste the JCL here ..but it was real long !
SCLM has always seemed elusive and obscure to me..does plenty in background Smile but then it takes care of version control.

Thnks
Vini
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Tue Feb 03, 2004 6:51 am    Post subject: Reply with quote

vini,

There are some options which are default to the complier. So even if you don't override them(via JCL or Program), then the program will be complied with the default value. Take a look at the link provided above and see the default value of each compiler option.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Tue Feb 03, 2004 4:40 pm    Post subject: Reply with quote

It all makes a lot of sense now ! Smile

Thnks
Vini
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group