Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8280
Location: Dubuque, Iowa, 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: 6970
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: 8280
Location: Dubuque, Iowa, 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: 6970
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 Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us