View previous topic :: View next topic
|
Author |
Message |
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
@ 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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
thanks enrico-sorichetti for your help :-) |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
And &JOBPRM are &DRVR symbolic parameter, must have been susbtituted from PROC/JCL... |
|
Back to top |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
@marso
yeah actually it is the PROC statement. |
|
Back to top |
|
|
|