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

Why TEST verb used with INITIALIZE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Apr 05, 2011 7:26 pm
Reply with quote

Did you review the appropriate Enterprise COBOL manual?

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: 6966
Location: porcelain throne

PostPosted: Tue Apr 05, 2011 8:06 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Zunit Test case editor error Testing & Performance 4
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts REXX Test under Mask??? CLIST & REXX 3
This topic is locked: you cannot edit posts or make replies. regarding COBOL WRITE verb (VB File H... COBOL Programming 9
No new posts Assembler test under mask question PL/I & Assembler 5
Search our Forums:

Back to Top