IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can i write a cobol program in the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raj2007

New User


Joined: 24 Jan 2007
Posts: 1
Location: Pune

PostPosted: Mon Jan 21, 2008 4:32 pm
Reply with quote

Hi Friends,


Can i write a cobol program in the JCL?

If it is Poassible how can we write?


Please suggest me..

Raj[/b]
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Jan 21, 2008 4:59 pm
Reply with quote

JCL controls programs; so you cannot.
And I consider the content of a SYSIN ( and others ... ) is outside the JCL.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Jan 21, 2008 8:26 pm
Reply with quote

Hello,

Quote:
Can i write a cobol program in the JCL?
COBOL programs are written in COBOL. . . They are often (usually) compiled with JCL.

If you re-word your question, we may be able to provide more usable replies.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Jan 21, 2008 10:01 pm
Reply with quote

You can use compile-link-and go. It puts the Cobol in-stream in the JCL.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 21, 2008 10:24 pm
Reply with quote

But even then.... the COBOL code is still written in COBOL...

O.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Jan 21, 2008 10:29 pm
Reply with quote

Raj,

What is your background or education in Mainframe to post such a question? Do you already write program ( in any language )?

This is not an attack, just trying to see what is your position.

Is the question coming from another people? your coach ?
Is it an exercice?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jan 21, 2008 11:36 pm
Reply with quote

Hi Raj,

Perhaps, if you can replace the dots of this sentence we may get a better idea of what you're looking for:
Quote:
Can i write a cobol program in the JCL instead of the usual way of .........

Just replace the dots (........) with the usual method you use to "write" a cobol program.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top