Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1249
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: 1249
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: 8165
Location: East Dubuque, Illinois, USA

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: 92

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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us