Page 1 of 1

How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 4:35 pm
by Nitin Nair
Hi. I am a beginner in mainframes. Can anyone guide me?
So far, I have just wrote this 1 COBOL program and i do not know how to proceed for compilation and execution of the same.

Please help me :(

AAT3 NN6407.NNPRACS(CBLWELCM) - 01.05 Columns 00001 00072
Command ===> Scroll ===> PAGE
****** ***************************** Top of Data ******************************
000010 **********************************************
000100 * COBOL PROGRAM TO DISPLAY "WELCOME" MESSAGE *
000200 **********************************************
000300 IDENTIFICATION DIVISION.
000400 PROGRAM-ID. WELCOME.
000500 AUTHOR. NN6407.
000700 PROCEDURE DIVISION.
000710 WELCOME.
000900 DISPLAY 'HELLO'.
001000 STOP RUN.
****** **************************** Bottom of Data ****************************

Re: COBOL NEWBIE

PostPosted: Mon Oct 08, 2012 4:42 pm
by enrico-sorichetti
<compile> JCLs are installation dependent
ask Your support or Your tutor/teacher

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 5:13 pm
by Nitin Nair
Thanks for the reply :)
I have no Tutor/Teacher..
I use the software Attachmate for mainframe..

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 5:29 pm
by enrico-sorichetti
I use the software Attachmate for mainframe..

attachmate is just the 3270 terminal emulator,
ask the support of the organization which provides You the zOS services

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 5:39 pm
by Nitin Nair
Thanks :)

But is there any general way to proceed?

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 6:05 pm
by enrico-sorichetti
what about looking Yourself at the cobol manuals
starting from
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

the COBOL manuals will tell how to invoke the compiler,
parameters and needed DDNAMES

since the dataset names used will depend on the organization/site standards
they know ( the people of the organization ), not the people from a forum

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 6:12 pm
by Nitin Nair
Hey Thanks a lot! :D

I will try to understand it..and i hope i will get my doubts solved here..

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 6:22 pm
by Nitin Nair
Um, is there any site from which i can get sample basic level(hello,addition,etc.) programs for COBOL?

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 6:29 pm
by enrico-sorichetti
a very good site with very well written explanations and examples is
http://www.simotime.com

Re: How to proceed for compilation and execution

PostPosted: Mon Oct 08, 2012 6:31 pm
by Robert Sample
But is there any general way to proceed?
Yes -- talk to someone (teacher, fellow student, support person) using the mainframe you are using. As you were told, there are NO general procedures in place for compiling programs -- each site uses its own standards. This is because each site may use various products (or none) for source code management, debugging, analysis, and so forth. Each product imposes its own requirements on the compile process, so what is in place at one site will not be usable for another site that does not use that particular product. Even things like data set names for system files vary among sites -- some sites will place the COBOL compiler in IGY.V4R2M0.SIGYCOMP, some will use IGY.R420.SIGYCOMP, some will use IGY.SIGYCOMP, and there are plenty of other variations out there. Only someone using your site can possibly tell you about the variations in use there.

Um, is there any site from which i can get sample basic level(hello,addition,etc.) programs for COBOL?
There is a link to IBM Manuals at the top of this page. This forum will point you to the manuals, but it is expected that you will read (and understand as much as possible) yourself; we don't read manuals for you. Enterprise COBOL has the Language Reference manual which gives you the syntax for the various COBOL statements, how data is stored by COBOL on the computer, and so forth. The Programming Guide manual provides environmental information and includes sample program code.