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

Default initial value for -S9(9) variable


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muralirajansm

New User


Joined: 19 Nov 2007
Posts: 8
Location: cheanni

PostPosted: Wed Jan 23, 2008 4:19 pm
Reply with quote

Please help me out for my below requirement.

I have declared the variable VAR1 as -S9(9).
I moved 0 to var1.
While checking the below condition it is entering in to proces.
IF VAR1 NOT = 0
{
process
}
Please let me why


Thnaks,
Muralirjan S.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jan 23, 2008 4:25 pm
Reply with quote

A good question.....
I'd think that if you added a display to the 'process', you would find out that VAR1 was not equal to zero.....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Jan 23, 2008 4:33 pm
Reply with quote

Quote:

I have declared the variable VAR1 as -S9(9).


no you have not. -S9(9) is syntactically incorrect. when you bother to post valid data, you will receive valid responses.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top