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

Want JCl which takes Cobol Code as Instream.


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

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Jul 17, 2006 1:59 pm
Reply with quote

Hi,

Could anyone provide me the JCL which takes Cobol Code from SYSIN, Compiles and executes in the same JCl.

Thanks
~Vamsi
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jul 17, 2006 4:38 pm
Reply with quote

Take a simple compile job, and put your COBOL code after the SYSIN card (instead of supplying a dataset name).

O.
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Tue Jul 18, 2006 9:27 pm
Reply with quote

The old 'dynamic' COBOL in action?
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Fri Jul 21, 2006 12:25 pm
Reply with quote

Hi,

Here is what you need. I have just twicked the compile JCL available in on this site.

Code:


000001 //COBCOMP JOB 'IBMMFS','MAC',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID                         000002 //PROCLIB JCLLIB ORDER=IBMMFS.PROC.COBOL   <= CONTAINS IGYWCL
000003 //STEP1 EXEC IGYWCL,
000004 // PARM.COBOL='LIB,APOST,XREF,MAP,OFFSET'    <= COMPILER OPTIONS
000005 //COBOL.SYSIN DD *
        YOUR COBOL CODE GOES HERE.
        YOUR COBOL CODE GOES HERE.
        YOUR COBOL CODE GOES HERE.
        YOUR COBOL CODE GOES HERE.
        YOUR COBOL CODE GOES HERE.
        YOUR COBOL CODE GOES HERE.

/*
000006 //LKED.SYSLIB DD DISP=SHR,DSN=IBMMFS.MAC.COPY(SUBCOB) <= COPYLIB
000007 //LKED.SYSLMOD DD DISP=SHR,DSN=IBMMFS.MAC.LOAD(COBOL) <= O\P PGM
000008 //SYSPRINT DD SYSOUT=*
000009 //
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Compile rexx code with jcl CLIST & REXX 6
Search our Forums:

Back to Top