Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How can we see parm file's value in cobol program variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 7
Location: Bombay

PostPosted: Tue Jun 30, 2009 5:26 pm    Post subject: How can we see parm file's value in cobol program variables
Reply with quote

Hi all,
Plz let me know that i am reading a Parm file and now i need to see parm file's value in particular Cobol variable,
Something i remember that there is a 'StandBy' command.
so can u give me detail description about it.

Thanks in advance
icon_lol.gif
Back to top
View user's profile Send private message
References
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4257
Location: Atlanta, GA

PostPosted: Tue Jun 30, 2009 5:52 pm    Post subject:
Reply with quote

Which COBOL compiler version? Are you using a debugger or not? AFAIK, there is no 'STANDBY' command in z/OS COBOL.

DISPLAY works well to show variable values.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 3385
Location: germany

PostPosted: Tue Jun 30, 2009 6:01 pm    Post subject:
Reply with quote

Robert,

it is 'Standby your <variable>', by Tammy Wynette.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4257
Location: Atlanta, GA

PostPosted: Tue Jun 30, 2009 6:25 pm    Post subject:
Reply with quote

ROFL dick! icon_biggrin.gif
Back to top
View user's profile Send private message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 7
Location: Bombay

PostPosted: Tue Jun 30, 2009 9:16 pm    Post subject:
Reply with quote

i am using Z/os cobol.
But still i am not getting it properly.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 3385
Location: germany

PostPosted: Tue Jun 30, 2009 9:46 pm    Post subject:
Reply with quote

Pavan wrote:
Z/os cobol


no such thing,
you are using either OS390 COBOL, COBOLII or Enterprise COBOL in a z/OS operating system.

Pavan wrote:
But still i am not getting it properly.

what told you that? Had you shared the error with us we could be more detailed/direct with our response.

As it is, can only show you the manual:
DISPLAY <variable name>
you don't need the UPON or WITH phrase.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 13596
Location: 221 B Baker St

PostPosted: Tue Jun 30, 2009 9:55 pm    Post subject:
Reply with quote

Hello,

Quote:
Something i remember that there is a 'StandBy' command.
From where do you remember this?

And for the music buffs, also "Standby Me" from Ben E. King. . .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1