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
 

 

Why TEST verb used with INITIALIZE

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

New User


Joined: 26 Jun 2007
Posts: 20
Location: Chennai

PostPosted: Tue Apr 05, 2011 6:52 pm    Post subject: Why TEST verb used with INITIALIZE
Reply with quote

I have a COBOL program using following statement:

TEST INITIALIZE M-REC

When I remove the Verb TEST the values are not properly initialized .

Could you please let me know why TEST verb used with INITIALIZE .I searched online could not find a proper explanation for it .

It would be great if you could give an example of this TEST option.

Thanks & Regards,
Mohan
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Apr 05, 2011 6:54 pm    Post subject:
Reply with quote

What version of COBOL are you using?
Back to top
View user's profile Send private message
MoganaKumaran

New User


Joined: 26 Jun 2007
Posts: 20
Location: Chennai

PostPosted: Tue Apr 05, 2011 7:15 pm    Post subject:
Reply with quote

Enterprise COBOL
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Apr 05, 2011 7:26 pm    Post subject: Reply to: TEST INITIALIZE
Reply with quote

Did you review the appropriate Enterprise COBOL manual?

http://www.ibmmainframes.com/manuals.php

I would start there first....

Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Apr 05, 2011 8:06 pm    Post subject:
Reply with quote

I could only find TEST used with the BEFORE and AFTER phrase within a perform.

something, as usual, is not being explained/exhibited by the TS.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Apr 05, 2011 8:47 pm    Post subject:
Reply with quote

Please post at least 5-10 lines of code around the statement in question, embedded in code tags. Also include relevant data definitions.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Apr 05, 2011 9:17 pm    Post subject:
Reply with quote

Could also be some pre-processor in the compile proc.
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 COOLGEN - TSO TEST FACILITY indianrajput CA Products 4 Wed Nov 02, 2016 9:28 pm
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts Two different PDS production and test... Mani453 CLIST & REXX 6 Fri Nov 20, 2015 2:25 pm
No new posts Weird test results when Xpediter is t... Crunch Compuware & Other Tools 6 Tue Oct 06, 2015 7:48 pm
No new posts Test for multiple equality prino CLIST & REXX 2 Tue Sep 15, 2015 12:47 am


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