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

what is the hierarchy of a cobol program?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Mon Nov 29, 2010 2:48 pm
Reply with quote

hi..
can anyone tell me what is the heirarchy of a cobol program? and what is the relation between the cobol program and the PARMLIB ,DRVR and ALM which is defined inside the corresponiding programme???

please let me know if u dint understand my query..

thanks,
nandeshwar
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Nov 29, 2010 3:23 pm
Reply with quote

nandeshwar wrote:
please let me know if u dint understand my query..
Sorry to say but this is the only sentence I could understand in your post!

What is DRVR? What is ALM? And I can just guess by PARMLIB, you might mean Parameter-library? These words are, actually, local-jargons, used at your shop - and they might not mean the same/similar things at some other place.

And what exactly do you want to know when you say, "heirarchy of a cobol program"?
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Mon Nov 29, 2010 3:27 pm
Reply with quote

hi anuj,

With cobol hierarchy , i mean hwo does the cobol program works/? for example if we take example of any C or C++ program. we have defined libraries and file sfrom which the program extracts its defintions and parameters. Similarly how does the cobol program works.?


thanks,
nandeshwar
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 29, 2010 3:41 pm
Reply with quote

the attempt to explain confuses things even more!

in IT using the correct terminology is the base for good communication and understanding

a cobol program works according the way You write
( but that applies to any program )

as far as the cobol compiler is concerned
here is a link to a list of bookshelves where You can choose the cobol version You are interested
and proceed from there with Your reading
www-03.ibm.com/systems/z/os/zos/bkserv/zappls2.html
look for ENTERPRISE COBOL

but please do not confuse the way compilers work on PC' s and zOS

on the PC the gcc is not a compiler,
is a driver that invokes in sequence all the program needed to produce the final result according to the flags ( -E -c -s ... )

under the IBM mvs class of operating systems ( zOS for example )
a compiler is just that... a <something> that takes a source and produces an object
( to be processed later by the binder/linkage editor )
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Mon Nov 29, 2010 4:06 pm
Reply with quote

@ enrico-sorichetti

thanks... I will keep ur suggestion in mind .

regarding the post:
actually my question was what does Parameter libraries are called? please see the below snapshot of a program m working on:


//*
//AAFJOBPI DD DSN=C&LCP.&SYS..SH.BMP&THDCO..PARM(&JOBPRM),
// DISP=SHR
//*
//AAFDRVPI DD DSN=C&LCP.TA.SH.BMP&THDCO..PARM(&DRVR),
// DISP=SHR
//*

please see the underlined parameters. Now my question is how does the program calls these parameters which are defined at another location. Hope this is not confusing.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 29, 2010 4:37 pm
Reply with quote

the program does not call anything ...

those are files that are read by the program

so You need to look at the program documentation to find out about the DDNAMES used

and the content of the related files
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Mon Nov 29, 2010 4:50 pm
Reply with quote

thanks enrico-sorichetti for your help :-)
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Nov 29, 2010 5:41 pm
Reply with quote

nandeshwar wrote:
please see the below snapshot of a program m working on:

//*
//AAFJOBPI DD DSN=C&LCP.&SYS..SH.BMP&THDCO..PARM(&JOBPRM),
// DISP=SHR
//*
//AAFDRVPI DD DSN=C&LCP.TA.SH.BMP&THDCO..PARM(&DRVR),
// DISP=SHR
//*

... Hope this is not confusing.


This is not a program!
This may be the JCL that runs the program.

If it is, there should be reference to files AAFJOBPI and AAFDRVPI in that program.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Nov 29, 2010 5:53 pm
Reply with quote

And &JOBPRM are &DRVR symbolic parameter, must have been susbtituted from PROC/JCL...
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Mon Nov 29, 2010 6:31 pm
Reply with quote

@marso

yeah actually it is the PROC statement.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
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 COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top