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

Diff between PL/I and COBOL for IMS


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Thu Mar 24, 2005 4:50 pm
Reply with quote

Whats the diff between COBOL-IMS and PLI-IMS.

I know cobol and PL/I are different programming languages.I know how to code DLI calls in COBOL. but how can I achieve this in PL/I

Thanks in advance
Back to top
View user's profile Send private message
knd_r
Currently Banned

New User


Joined: 18 Mar 2005
Posts: 48

PostPosted: Mon Apr 25, 2005 6:01 pm
Reply with quote

dlI calls in pl/I:

plItdlI: parm_count,
function code,
pcb_name,
seg_io,
ssa1,
.......,
ssa15;

here parm count indicates the number of parameters using in the call.
function code represent the type of call (gu, ghu like that),
pcb_name indicates the name of pcb name on which dlI call is issued,
seg_io - segment input output area,
ssa - segment search area.

using cobol:

call cbltdlI using function_code,
-----,
------,
------;

here parm_count is not necessary in cobol.


regards,
k. s. reddy.
Back to top
View user's profile Send private message
sudheer648

New User


Joined: 23 May 2005
Posts: 97
Location: Chennai

PostPosted: Wed Jun 01, 2005 3:04 pm
Reply with quote

Hi sudhaaa,

You are aware of how to code DLI calls in COBOL right in the similar way to code in PL/I with small changes

Program Changes
1.Use PLITDLI instead of CBLTDLI
2.Need to Use ParmCount while it is option in COBOL.
3.A lot of Built-in Functions are available in PL/I and not in COBOL

No change in PROC's and JCLS.
Back to top
View user's profile Send private message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Thu Jun 09, 2005 5:45 pm
Reply with quote

Hi Sudheer and KS,

Thanks for your replies. I hope you well known about Linkage section in COBOL.Here in PL/I, how can achieve this.
This is not a IMS question, but I'm posting here because in IMS using LINKAGE SECTION is very common(for PCB-MASK). So, How can I achieve this.

Thanks in advance.

Regards,
Sudhaaa.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts IDCAMS listcat service using cobol JCL & VSAM 1
No new posts Make cobol variable value a variable COBOL Programming 3
No new posts how to convert and use 1 bit hex-numb... COBOL Programming 10
No new posts VB file copy COBOL program gives erro... COBOL Programming 3
No new posts Cobol program to determine the sequen... COBOL Programming 2
Search our Forums:

Back to Top