Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to compile cobol program without jcl?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ravichand426

New User


Joined: 23 Jan 2008
Posts: 1
Location: mumbai

PostPosted: Wed Jan 23, 2008 2:28 am    Post subject: how to compile cobol program without jcl?
Reply with quote

how to compile cobol program without jcl?
what code merge into pgm?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jan 23, 2008 2:30 am    Post subject: Reply to: how to compile cobol program without jcl?
Reply with quote

Aren't most programs compiled in the foreground anyway?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 23, 2008 2:50 am    Post subject:
Reply with quote

Hello Ravi and welcome to the forums,

Quote:
how to compile cobol program without jcl?
I'd suggest you talk with your compiler support people to find out if this is acceptable on your system. If it is not, they can also provide the correct compile/link jcl for use on your project/system.

Quote:
what code merge into pgm?
Please clarify what you want to know.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Wed Jan 23, 2008 3:42 pm    Post subject:
Reply with quote

if you are not willing to use a jcl to compile your cobol programs, you may always compile it using the foreground options. Usually available at 5.2 in the ISPF primary menu.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Jan 23, 2008 3:55 pm    Post subject: Reply to: how to compile cobol program without jcl?
Reply with quote

Quote:
you may always compile it using the foreground options. Usually available at 5.2 in the ISPF primary menu.


That' s a very bad advice...
most IT shops forbid foreground compilations

quite often (apart the jes2 queuing time) it will take longer
any proper goal_mode or ics/ips(old) setup will favor the short running tasks
and long running tasks like compilations will at the end get less resources
imagine 600 tso users running a foreground compilation at the same time... brrrrr...
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jan 23, 2008 5:37 pm    Post subject: Re: Reply to: how to compile cobol program without jcl?
Reply with quote

enrico-sorichetti wrote:
most IT shops forbid foreground compilations


I have to respectfully disagree. In 26 years of IT in many different shops, the one consistency is that working in the foreground is always encouraged, and working in the background is always discouraged. I've seen it go so far as to have the Command Center shutdown all of the test/development initiators during peak hours.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Jan 23, 2008 6:18 pm    Post subject: Reply to: how to compile cobol program without jcl?
Reply with quote

You have the right to disagree

but those organizations encouraged the worst scenario
what I am suggesting, is still the best practice ( by any point of view )
in order to have a manageable environment, with a good control over the workload..

foreground compilations from my measurements quite often more than double the compilation runs

moreover encouraging foreground compilation they encourage bad programming habits
( programmers write and very seldom reread what they have written )

that' s the same thing that happens with debuggers,
people sitting and hitting the enter key to find out errors that 90% of the time
could have been discovered by just reading the program

again what about 600 tso users running a compilation, and sitting there doing nothing,
waiting for something swapped out to be resumed crawling like a sick turtle

those command centers would have lost all the wars icon_biggrin.gif

this will be my last post on the subject of foreground vs background icon_biggrin.gif
( quite often it will end in a religion war )

P.S.

allowing foreground compilations is a way of faking/cheating on compliance with the SLA
(service level agreement)

reporting for batch is much more understandable by the end user
and the response time cannot be adulterated
availability of resources is easily checked ( jes2 queuing )

reporting for tso/foreground is much more complex/murky to understand by the end user
and resource availability and response times are more difficult to measure and balance
no jes2 qeuing for an initiator, but a tso swap after the compilation invocation
no queuing, but longer elapsed
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jan 23, 2008 7:05 pm    Post subject:
Reply with quote

In 40 years of programming I have done 2 or 3 foreground compiles.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us