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

What are the values of A and B in this Redefine clause


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shrikanth
Warnings : 1

New User


Joined: 26 Feb 2007
Posts: 5
Location: Bangalore

PostPosted: Tue Feb 27, 2007 11:38 pm
Reply with quote

Hi

Can some one tell me what are the values of A and B ?

Code:
01 Ws-a pic x(2) value "AB"
   02 Ws-b Redifines Ws-a pic 9(2)
    03 A pic 9
    03 B pic 9

What are the values of A and B.

Appreciate Your Kind Help!
Shrikanth
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Tue Feb 27, 2007 11:48 pm
Reply with quote

The values are "A" and "B" respectively.
Back to top
View user's profile Send private message
hanu_010

New User


Joined: 25 Jan 2007
Posts: 9
Location: hyd

PostPosted: Thu Mar 01, 2007 10:50 pm
Reply with quote

WHEN EVER USING REDEFINES CLAUSE WE SHOULD USE SAME LEVEL NUMBER

IN THE ABOUE YOU ARE NOT FOLLOWING REDEFINE RULE
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 02, 2007 3:37 am
Reply with quote

Hello,

Turn off the ALL CAPS icon_cry.gif

In the example posted, there will be no values - that code will not compile. There are level number problems, misspelling, and a group level issue.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top