View previous topic :: View next topic
|
Author |
Message |
arulraj_ponnusamy
New User
Joined: 20 Nov 2006 Posts: 1
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 ...." |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
EnjoyMF
New User
Joined: 27 May 2005 Posts: 88
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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.
Quote: |
Is that app proprietary? I've gotta get me one of those. . . . |
Nope, fortunately it's merely imaginary.
PS. But if you REALLY want one, I can put it together for you at a mere $1.00 per Input. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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!! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
No joke. . . . . |
|
Back to top |
|
|
|