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

COBOL Questions


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

New User


Joined: 03 Feb 2006
Posts: 8

PostPosted: Thu Feb 16, 2006 10:44 pm
Reply with quote

hi all,
Plz help me with these questions.

1)What is highest value & lowest value in collating sequence of alphanumeric & alphabetic data elements?

2)Is the picture cluase for below mentioned elementary data item valid?
01 abc.
02 aa pic 9(4)Vxx.
3)What is the size of data item having picture cluase
(i) -9(4).99
(ii) $z(5).99CR

4)What is internal representation of :

External Value Picture Internal
------------- ------- --------
-.00123 spp999 ?

5)What is the use of USAGE as INDEX?
How is it stored internally?
What is its Picture Cluase?

Thanks in advance.......
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Feb 16, 2006 10:53 pm
Reply with quote

Hi,

Quote:
2)Is the picture cluase for below mentioned elementary data item valid?
01 abc.
02 aa pic 9(4)Vxx.


I believe its not valid.


Quote:
3)What is the size of data item having picture cluase
(i) -9(4).99

7

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Feb 19, 2006 7:10 am
Reply with quote

Hi Richu,

1) Not sure I understand, but X'00' (binary zero) and X'FF' (all 8 bits in byte are set to "1") are the usual hi/low in the IBM MF environment.

2) No.

3) (i) 8 bytes; (ii) 11 bytes.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Feb 19, 2006 11:21 pm
Reply with quote

Hi Richu,

Had to check on your last 2 ques. Haven't used them.

According to the manual, if I understand it correctly:

4) Internally, it would look like X'F1F2FD3'. BTW, externally, it would look like 0012L, not -00123. If the PIC were -PP999, it would display as
-00123.

5) It is an INDEX data item. It is used to save an INDEX value for use later. It can only be referenced by a SET, SEARCH, USING (both P.D. header or ENTRYstmts and a CALL USING stmnt).

It's stored as a 4 byte binary item and doesn't have a PIC clause (or value either), but you can think of it as S9(9) COMP.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top