Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

doubt in numeric-edited symbols

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: doubt in numeric-edited symbols
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: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 08, 2008 7:07 pm    Post subject:
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

Site Director


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

PostPosted: Sun Nov 09, 2008 5:18 am    Post subject: Reply to: doubt in numeric-edited symbols
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: 1239
Location: Richfield, MN, USA

PostPosted: Sun Nov 09, 2008 9:52 am    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Sun Nov 09, 2008 10:11 am    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Mon Nov 10, 2008 5:59 pm    Post subject:
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    Post subject:
Reply with quote

i got it now.... Very thanks to all....
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Mon Nov 10, 2008 9:19 pm    Post subject: Reply to: doubt in numeric-edited symbols
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: 90

PostPosted: Tue Nov 11, 2008 3:31 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts pass numeric value of length 14 to ti... Ralph Zbrog Java & MQSeries 4 Fri Jan 15, 2016 3:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us