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

how wud compiler interpret Pic9(1) value '3'.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tarun Deep
Warnings : 1

New User


Joined: 10 Jun 2005
Posts: 10
Location: Hyderabad, India

PostPosted: Fri Jul 29, 2005 2:52 pm
Reply with quote

If we define value in quotes for PIC9,
say, WS-VAR1 PIC 9 VALUE '3'.
how wud complier interpret this ?

regards
Tarun
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 30, 2005 7:30 pm
Reply with quote

My guess is you'll get a compiler error because you mixed an alpha numeric value w/a numeric PIC.

On the other hand beginning w/COBOLII using a 3 instead of a '3' to describe a number is acceptable. BTW, you must use 'A' to describe a letter in an A/N field.
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 How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Pre-Compiler Bug with DSNH520I message? DB2 1
No new posts pre-compiler for program in an HFS DB2 0
No new posts Who can recomend or to know a PL1 com... DB2 4
Search our Forums:

Back to Top