View previous topic :: View next topic
|
Author |
Message |
inbasekarmani Warnings : 2 New User
Joined: 20 Apr 2007 Posts: 13 Location: chennai
|
|
|
|
hi ,
I written following code.
IDENTIFICATION DIVISION.
PROGRAM-ID. HAI.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY "MY PROGRAM-ID IS:" PROGRAM-ID.
STOP RUN.
its giving error,anyway is there to store the program-id in a variable and to display.I need "HAI" to be displayed. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
though there is a special register WHEN COMPILED
there is no special register for Program-ID.
my experience is that the programmer must create a working-storage field containing the Program name. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
In this topic from yesterday I posted code that can be used to obtain all sorts of runtime details, including the program name. |
|
Back to top |
|
|
|