IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 30, 2009 5:52 pm
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: 6966
Location: porcelain throne

PostPosted: Tue Jun 30, 2009 6:01 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 30, 2009 6:25 pm
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
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: 6966
Location: porcelain throne

PostPosted: Tue Jun 30, 2009 9:46 pm
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

Moderator Emeritus


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

PostPosted: Tue Jun 30, 2009 9:55 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top