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

doubt in numeric-edited symbols


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

New User


Joined: 29 Mar 2008
Posts: 3
Location: Bangalore

PostPosted: Sat Nov 08, 2008 6:14 pm
Reply with quote

What will happen when we try to move a value to following numeric edited symbol....

Working storage section.
01 x pic 0z(3).

procedure division.
move 0001 to x.
display x.

Tell me the output for this..
this is the question asked in a interview.....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Nov 08, 2008 7:07 pm
Reply with quote

The idea of the interview questions forum is for you to post your solution looking for guidance and corrections where appropriate.
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: Sun Nov 09, 2008 5:18 am
Reply with quote

Hello,

Quote:
What will happen when we try to move a value to following numeric edited symbol....
So, how did you answer the interviewer?

Do not be concerned about being correct or incorrect - we don't keep score and answers receive neither prize nor penalty icon_smile.gif

d
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sun Nov 09, 2008 9:52 am
Reply with quote

I don't think your picture clause is valid. Care to double check it?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sun Nov 09, 2008 10:11 am
Reply with quote

Oops -- I stand corrected (by myself!). After I RTFMd, I discovered that 0 is a legitimate editing character. 30 years of COBOL programming and I've never used it!
Back to top
View user's profile Send private message
ramcse

New User


Joined: 29 Mar 2008
Posts: 3
Location: Bangalore

PostPosted: Mon Nov 10, 2008 11:44 am
Reply with quote

i replied zero suppression will not take place.... is it correct
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 10, 2008 5:59 pm
Reply with quote

I tested the PICTURE and got
Code:
0  1
Back to top
View user's profile Send private message
ramcse

New User


Joined: 29 Mar 2008
Posts: 3
Location: Bangalore

PostPosted: Mon Nov 10, 2008 8:48 pm
Reply with quote

i got it now.... Very thanks to all....
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: Mon Nov 10, 2008 9:19 pm
Reply with quote

Quote:
i got it now.... Very thanks to all....

You're welcome icon_smile.gif

I am puzzled why such a question would be in an interview. . . icon_confused.gif

d
Back to top
View user's profile Send private message
mohitsaini
Warnings : 1

New User


Joined: 15 May 2006
Posts: 92

PostPosted: Tue Nov 11, 2008 3:31 pm
Reply with quote

Quote:
I am puzzled why such a question would be in an interview


I think such kind of questions do not make or break a selection during the interview. These questions are just thrown to assess how deeply the candidate knows about the subject he is dealing with. Also some of the interviewers have a tendency to keep on asking more and more complex questions until the candidate is stuck.
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Convert HEX to Numeric DB2 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts To find an array of words (sys-symbol... JCL & VSAM 9
Search our Forums:

Back to Top