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

Is JCL coding same when using cobol /pl/1 languages?


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

New User


Joined: 03 Aug 2005
Posts: 20

PostPosted: Sun Apr 02, 2006 12:49 pm
Reply with quote

Hello
can anyone tell me suppose if i am using pl/1 language .How to code the JCL .Is it similar to coding using a cobol language or there are any major changes i have to make , so plz anyone can help me by providing what are the major changes required in JCL when using pl/1 language.
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Mon Apr 03, 2006 7:13 pm
Reply with quote

Yes the JCL is different while you execute a PLI program...

In COBOL you can execute the load module by directlu giving its name in the EXEC, in JCL you execute by giving it as a parameter to the SYSTSIN step of a job which executes HEWL(I am not sure of this? Am I wrong?) or IKJEFT01...

This is a JCL I found in the forum...

//SYSNPARM SET IDE='HD061024H111111'
//P18RRP EXEC PGM=IKJEFT01
//STEPLIB DD DSN=USUARIO.LIB.LOADLIB,DISP=SHR
//DBRMLIB DD DSN=USUARIO.LIB.DBRMLIB,DISP=SHR
//DSNTRACE DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//PLIDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DS2)
RUN PROGRAM(PRUEBA) PLAN(PRUEBA) PARM(&IDE)-
LIB('USUARIO.LIB.LOADLIB')
END


Apologies to angelalpe, as I didn't ask her permission to post this JCL....
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Mon Apr 03, 2006 7:17 pm
Reply with quote

I guess the JCL is self-explanatory but still...

Forget the SYSNPARM step, its just a set.

In the SYSTSIN step
DSN - your DB2 ssid
PROGRAM - the name of your load
PLAN - DB2 Bind plan name
PARM - parameter which you are passing to the program...
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Apr 03, 2006 8:12 pm
Reply with quote

Personally, I don't understand the question. JCL (and the entire operating system for that matter) doesn't really care what language a load module is written in. Isn't PLI just another compiled language like COBOL or Assembler or C++?
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Mon Apr 03, 2006 9:18 pm
Reply with quote

hy rajjesht,

there is no difference.
for the jcl it doesn't matter which kind of programming language you used
to create the executable load.
if the program is executable, it will execute that program...

martin9
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Tue Apr 04, 2006 1:23 am
Reply with quote

But superk and martin9,

I wasn't able to execute my pli load module with a simple EXEC PGM= !!!
That is when a colleague advised me to use thias format. Now you guys are more experienced, and I may stand corrected...
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Apr 04, 2006 5:04 am
Reply with quote

does the program use DB2? Looks like it does from your jcl example. if so, that's why it runs via tso batch.
Back to top
View user's profile Send private message
rajjesht
Warnings : 1

New User


Joined: 03 Aug 2005
Posts: 20

PostPosted: Tue Apr 04, 2006 9:51 am
Reply with quote

Thank you guys
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top