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
 

 

How can we see parm file's value in cobol program variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 13
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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

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: 8057
Location: East Dubuque, Illinois, USA

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: 13
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

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

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
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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
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 Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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