View previous topic :: View next topic |
Author |
Message |
itl_srp Beginner
Joined: 02 Feb 2006 Posts: 2 Topics: 1
|
Posted: Thu Feb 02, 2006 7:02 am Post subject: Concatenated Input files |
|
|
Hi,
This is a bsic doubt I am having -
Say, I am using the following file as an input to my program.
//INSTRD DD DSN=AAAAA.BBBB.CCCCC,DISP=SHR
// DD DSN=XXXXX.YYYY.ZZZZZZ,DISP=SHR
That is, my input file to the program is one which is concatenated by the two files AAAAA.BBBB.CCCCC and XXXXX.YYYY.ZZZZZZ.
Now, say I want to open the file in IO mode. I.e later in my program I want to wrte to the same file which is used as my input. With this intention, I now give the following in my run jcl -
//INSTRD DD DSN=AAAAA.BBBB.CCCCC,DISP=(MOD,CATLG)
// DD DSN=XXXXX.YYYY.ZZZZZZ,DISP=(MOD,CATLG)
My first doubt goes -
1. Can I use this disp at all for my purpose. If not then how should I represent my file which is my input file as well as my output file and the input file is a result of concatenation of two other files. In that case, what should be the name of my physical file.
Second doubt is -
2. When i am writing to this file again in my program, which file physically the records will be written to?
Appreciate any help in this regard. _________________ Thanks & Regards,
Macs |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Feb 02, 2006 8:55 am Post subject: |
|
|
OUTPUT concatenations are not allowed. I'm sure you'll get a system ABEND. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
itl_srp Beginner
Joined: 02 Feb 2006 Posts: 2 Topics: 1
|
Posted: Thu Feb 02, 2006 9:35 am Post subject: |
|
|
Thanks Bill.....but say, I want to know the physical file name of my input file.....
Is there a temp file created as input to my pgm by concatenating the other two files here..... _________________ Thanks & Regards,
Macs |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Feb 02, 2006 11:54 am Post subject: |
|
|
No, your input file is still two datasets. There are examples in other posts to find the input file names if you need them in your program. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
bablack Beginner
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
|
Posted: Fri Feb 03, 2006 4:36 pm Post subject: |
|
|
The JCL manual confirms that you cannot concatinate output files
Quote: | You can logically connect or concatenate sequential or partitioned (PDSs
or PDSEs) input data sets for the duration of a job step. Each of the
concatenated data sets can reside on a different volume. For details on
concatenating data sets, see z/OS DFSMS Using Data Sets. Note that you
cannot concatenate output data sets. |
I suggest that you have two DDs in your step. One will be the concatinated input datasets. The other will point to the output dataset (which can be one of the two input datasets). You probably can't open then both at the same time _________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing |
|
Back to top |
|
 |
|
|