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

Advatage of coding RECFM=F over RECFM=FB.


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

New User


Joined: 20 Nov 2006
Posts: 1

PostPosted: Fri Jan 19, 2007 7:19 pm
Reply with quote

i have some doubts in jcl. can anyone solve it?

1.What is the advatage of coding RECFM=F over RECFM=FB.

2.How to by pass the step without cond parameter?

3.How can be determined if date contained in the header of a file is date current date?

4.There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Jan 20, 2007 3:08 am
Reply with quote

Quote:
1.What is the advatage of coding RECFM=F over RECFM=FB.


The biggest advantage of coding RECFM=F over RECFM=FB is for the DASD salesman. RECFM=F will require considerably more DASD than RECFM=FB. And require a longer time to write and read the data. The only reason I can think of for RECFM=F is if the predecessor job cannot handle blocked data.

Quote:
2.How to by pass the step without cond parameter?


Please search the forum, this has been answered many times.

Quote:
3.How can be determined if date contained in the header of a file is date current date?


Edit the header and look at it?

Quote:
4.There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?


Please tell us more about the application. Is this a cobol program reading the files?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jan 20, 2007 11:39 pm
Reply with quote

The only "advantage" I can think of is that the buffers will be smaller. I guess if I used my imagination I could come up with an app where it would come in handy.

"I have an app that requires 30,000 1 rec inputs to be open concurrently ...." icon_eek.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jan 21, 2007 8:50 am
Reply with quote

Hi Jack,

Sure hope i don't slip up and say that at the airport. . .

Is that app proprietary? I've gotta get me one of those. . . .
Back to top
View user's profile Send private message
EnjoyMF

New User


Joined: 27 May 2005
Posts: 88

PostPosted: Sun Jan 21, 2007 10:45 am
Reply with quote

Hi Friend

1.There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?


If we know the files names and the number of files are fixed then we can concatenate the files ,need to concatenate with a Dummy file to handle the sutuation in case of 0 files

In general Assembler routines are used to open the files dynamically & write into the files by creating them dynamically in the program.

The same can be done through REXX .


Cheers..Prasad
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jan 22, 2007 12:49 am
Reply with quote

Hi Dick,
Quote:
Sure hope i don't slip up and say that at the airport. . .

I'd just like to say that you're the 1st person to say that. I'd like to, but you're colser to the 1,000th. icon_confused.gif
Quote:
Is that app proprietary? I've gotta get me one of those. . . .

Nope, fortunately it's merely imaginary. icon_smile.gif

PS. But if you REALLY want one, I can put it together for you at a mere $1.00 per Input.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 22, 2007 5:01 am
Reply with quote

Hi Jack,

Good humor seem to fade away fairly quickly - bad jokes (especially those that fit us) follow us a long, long time. . . .

'Preciate the offer to provide the app, but if the price is only $1.00 per input, i'll look around until i find one that will hurt more to purchase as well as eat the machines. It's a shame that Windows apps don't run on the mainframe - quite a few of them appear to have used that design criteria icon_wink.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jan 22, 2007 5:42 am
Reply with quote

Hi Dick,

Dont get me wrong, it was a good joke. But it seems that jokes seem to fade with age and use.

I'll bet "Take my wife.... Please" was a good joke once.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 22, 2007 5:48 am
Reply with quote

mmwife wrote:
I'll bet "Take my wife.... Please" was a good joke once.
A couple of years ago, I know that would have been my reply!! icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 22, 2007 6:46 am
Reply with quote

No joke. . . . .
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 Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts How to browse RECFM=VBS DSORG=PSE seq... JCL & VSAM 7
No new posts INVALID RECFM FOR DDNAME SYSLIN AND C... All Other Mainframe Topics 7
No new posts Getting information (RECFM/LRECL/BLKS... COBOL Programming 3
No new posts Copy RECFM =VB TO FB file with RECL =... DFSORT/ICETOOL 3
Search our Forums:

Back to Top