How to proceed for compilation and execution



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to proceed for compilation and execution

Postby Nitin Nair » Mon Oct 08, 2012 4:35 pm

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 ****************************
Thanks,
Nitin
Nitin Nair
 
Posts: 5
Joined: Mon Oct 08, 2012 4:27 pm
Has thanked: 3 times
Been thanked: 0 time

Re: COBOL NEWBIE

Postby enrico-sorichetti » Mon Oct 08, 2012 4:42 pm

<compile> JCLs are installation dependent
ask Your support or Your tutor/teacher
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

These users thanked the author enrico-sorichetti for the post:
Nitin Nair (Mon Oct 08, 2012 6:13 pm)
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to proceed for compilation and execution

Postby Nitin Nair » Mon Oct 08, 2012 5:13 pm

Thanks for the reply :)
I have no Tutor/Teacher..
I use the software Attachmate for mainframe..
Thanks,
Nitin
Nitin Nair
 
Posts: 5
Joined: Mon Oct 08, 2012 4:27 pm
Has thanked: 3 times
Been thanked: 0 time

Re: How to proceed for compilation and execution

Postby enrico-sorichetti » Mon Oct 08, 2012 5:29 pm

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
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

These users thanked the author enrico-sorichetti for the post:
Nitin Nair (Mon Oct 08, 2012 6:13 pm)
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to proceed for compilation and execution

Postby Nitin Nair » Mon Oct 08, 2012 5:39 pm

Thanks :)

But is there any general way to proceed?
Thanks,
Nitin
Nitin Nair
 
Posts: 5
Joined: Mon Oct 08, 2012 4:27 pm
Has thanked: 3 times
Been thanked: 0 time

Re: How to proceed for compilation and execution

Postby enrico-sorichetti » Mon Oct 08, 2012 6:05 pm

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
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

These users thanked the author enrico-sorichetti for the post:
Nitin Nair (Mon Oct 08, 2012 6:13 pm)
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to proceed for compilation and execution

Postby Nitin Nair » Mon Oct 08, 2012 6:12 pm

Hey Thanks a lot! :D

I will try to understand it..and i hope i will get my doubts solved here..
Thanks,
Nitin
Nitin Nair
 
Posts: 5
Joined: Mon Oct 08, 2012 4:27 pm
Has thanked: 3 times
Been thanked: 0 time

Re: How to proceed for compilation and execution

Postby Nitin Nair » Mon Oct 08, 2012 6:22 pm

Um, is there any site from which i can get sample basic level(hello,addition,etc.) programs for COBOL?
Thanks,
Nitin
Nitin Nair
 
Posts: 5
Joined: Mon Oct 08, 2012 4:27 pm
Has thanked: 3 times
Been thanked: 0 time

Re: How to proceed for compilation and execution

Postby enrico-sorichetti » Mon Oct 08, 2012 6:29 pm

a very good site with very well written explanations and examples is
http://www.simotime.com
Last edited by enrico-sorichetti on Mon Oct 08, 2012 6:33 pm, edited 1 time in total.
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
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: How to proceed for compilation and execution

Postby Robert Sample » Mon Oct 08, 2012 6:31 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post