MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Concatenated Input files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
itl_srp
Beginner


Joined: 02 Feb 2006
Posts: 2
Topics: 1

PostPosted: Thu Feb 02, 2006 7:02 am    Post subject: Concatenated Input files Reply with quote

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
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Feb 02, 2006 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message
itl_srp
Beginner


Joined: 02 Feb 2006
Posts: 2
Topics: 1

PostPosted: Thu Feb 02, 2006 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Feb 02, 2006 11:54 am    Post subject: Reply with quote

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
View user's profile Send private message
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Fri Feb 03, 2006 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group