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

A question on 88 level variable.


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

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Thu Feb 18, 2010 12:23 pm
Reply with quote

Hi , can we give pic clause on 88 level variable as shown below.

comment on this code :


01 Month PIC X(03).
88 M1 PIC X(03) value 'JAN'.
88 M2 PIC X(03) value 'FEB'.


---------------------------------------------------------------------


The below code is fine for reference.

01 Month PIC X(03).
88 M1 value 'JAN'.
88 M2 value 'FEB'.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 18, 2010 12:39 pm
Reply with quote

Why would you want to add the PICs?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Feb 18, 2010 1:05 pm
Reply with quote

You need to go through cobol manual to study what 88 LEVEL is..
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Feb 18, 2010 1:49 pm
Reply with quote

@ Mukesh Pandey

Morning Sir !

You only have the Pic-Clause to define the field.

01 MDL90600-SQL-STATUS PIC X(04).
88 MDL90600-SQL-IGNORE VALUE '0000'.
88 MDL90600-SQL-FEHLER VALUE '9999'.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Thu Feb 18, 2010 5:02 pm
Reply with quote

i just wanted to know what error we get if we use pic clause at 88 level.
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: Thu Feb 18, 2010 5:31 pm
Reply with quote

Mukesh Pandey wrote:
i just wanted to know what error we get if we use pic clause at 88 level.

Trying compiling the program and review the error messages. It's a simple process which YOU can do quite easily.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Feb 20, 2010 7:41 pm
Reply with quote

Hi Mukesh,

Perhaps the following might lead you to the answer:

The 88 level is not a variable, it's a condition name. The 01 level is the variable.
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 How to load to DB2 with column level ... DB2 6
No new posts Question for file manager IBM Tools 7
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
Search our Forums:

Back to Top