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

How many records are there if filesize=20000


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 12:51 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 1:11 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 1:18 pm
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: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 1:20 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 1:38 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top