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
 

 

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: 8593
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: 8593
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: 8593
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: 8593
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


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