Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

what is the hierarchy of a cobol program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what is the hierarchy of a cobol program?
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

Senior Member


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

PostPosted: Mon Nov 29, 2010 3:23 pm    Post subject: Re: what is the hierarchy of a cobol program?
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Nov 29, 2010 3:41 pm    Post subject: Reply to: what is the hierarchy of a cobol program?
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
http://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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Nov 29, 2010 4:37 pm    Post subject: Reply to: what is the hierarchy of a cobol program?
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    Post subject:
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: 1228
Location: Israel

PostPosted: Mon Nov 29, 2010 5:41 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Nov 29, 2010 5:53 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us