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
 
How many records are there if filesize=20000

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
pavan_it2004
Warnings : 1

New User


Joined: 27 Aug 2006
Posts: 3

PostPosted: Wed Mar 28, 2007 12:41 pm    Post subject: How many records are there if filesize=20000
Reply with quote

Hi,
In my CSC interview they asked me,
if filesize=20000,reclength=145,then how many records are there?wht is the file organization?
plz anybody send me answer?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8645
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 12:51 pm    Post subject:
Reply with quote

OK, let's think about this.

You know the file size, 20000. Is that 20000 bytes, Kb, Mb, tracks, cyinders.

Depending on the answer to the filesize query above the formula to calculate the number of records can be derived.
Back to top
View user's profile Send private message
pavan_it2004
Warnings : 1

New User


Joined: 27 Aug 2006
Posts: 3

PostPosted: Wed Mar 28, 2007 1:06 pm    Post subject:
Reply with quote

it is a 20000kb,and reclength=145kb...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8645
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 1:11 pm    Post subject:
Reply with quote

The record length is 145Kb ??? I think not. That would give an LRECL of 148480. The maximum permissible LRECL is 32760.

Please clarify your exact requirement for further assistance.
Back to top
View user's profile Send private message
pavan_it2004
Warnings : 1

New User


Joined: 27 Aug 2006
Posts: 3

PostPosted: Wed Mar 28, 2007 1:14 pm    Post subject:
Reply with quote

no they given only like reclength=145kb.....
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8645
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 1:18 pm    Post subject:
Reply with quote

A record length of 145Kb is totally impossible on a mainframe.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 1:20 pm    Post subject:
Reply with quote

Pavan,

Quote:
no they given only like reclength=145kb.....


If you are sure that they had given the lrecl=145KB, they were expecting the answer

Quote:
The maximum permissible LRECL is 32760


as Expat highlighted.

Remeber this is the way to trap you in an interviews.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8645
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 1:38 pm    Post subject:
Reply with quote

Taking this problem logically. For the sake of simplicity let us assume that the figures quoted in the original post are explicit.

You have a certain amount of DASD space to use up with your records.

DASD = 20000
RECS = 145

so how would you find out how many records of a given fixed size will fit into a storage area of a given fixed size.
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 add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 7 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 15 Sat Feb 17, 2018 4:20 pm
No new posts Need all records with high key kalidasvs SYNCSORT 14 Fri Feb 09, 2018 10:38 pm
No new posts Why is SORT rearranging records that ... cschablow DFSORT/ICETOOL 4 Wed Jan 24, 2018 10:14 pm

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