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 

Concatenating instream data

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Sun Jul 04, 2004 4:08 am    Post subject: Concatenating instream data Reply with quote

hi all,

is it possible to concatenate INSTREAM data to a list of DATASETS???

to put the Question in better way, we all know the way to concatenate DATASETS is as follows:

//DDNAME dd dsn=XXXXX,disp=shr
// dd dsn=yyyyy,disp=shr
// dd dsn=zzzzzz,disp=shr

but can we concatenate INSTREAM data to these concatenation of datasets.

ie can we concatenate following instream data

// DD *
kfgjkdfdfkghdgk
kgjkjgkhkhkjgkfjh
/*

to the above mentioned Concatenation list of datastes.


Thanx in advance

P.R.Mohanty
Kanbay
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jul 04, 2004 8:22 am    Post subject: Reply with quote

Didn't you try?

Yes, concatenation is allowed/possible. But, it really depends on the s/w that you are trying to execute. For example, in a list of concatenated datasets, the one with highest blocksize must be at top. OTOH and AFAIK, DFSORT requires all datasets have same LRECL also.

So, basically, you can.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sun Jul 04, 2004 12:18 pm    Post subject: Reply with quote

The requirement to have the largest blocksize as the 1st data set was removed a loooooong time ago. Only if your program actually checks it (doubtful), woud that matter.
Back to top
View user's profile Send private message Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Sun Jul 04, 2004 6:14 pm    Post subject: Reply with quote

As Cogito says, it depends on the program that is reading the concatenated data sets. The system allows it, but the program must be able to handle the like or unlike attributes of the other data sets. Instream data is just a data set with specific attributes (RECFM=FB, LRECL=80, BLKSIZE=n*80) and is no different with respect to concatenation than any other type of data set with the same attributes.

Since DFSORT was mentioned, I'll quote the main rules for using SORTIN concatenation with DFSORT:

---------------------------------------------------------------------------------
RECFM must be either all fixed-length or all variable-length for the data sets in the concatenation.

BLKSIZE can vary. However, if a tape data set has the largest block size and is not first in the concatenation, you must specify BLKSIZE explicitly on its DD statement in the following two situations:

o Blockset is selected and the tape data set has a block size greater than 32760 bytes, but the block size is not available from DFSMSrmm(TM) or ICETPEX.

o Blockset is not selected.

With fixed-length records, LRECL must be the same for all data sets. With variable-length records, LRECL can vary, but the first data set must have the largest LRECL.
---------------------------------------------------------------------------------

Each program has its own rules for the types of concatenation it allows.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Brian
Beginner


Joined: 12 Aug 2003
Posts: 95
Topics: 6

PostPosted: Sun Jul 04, 2004 11:13 pm    Post subject: Reply with quote

You may concatenate instream data with catalogued data. You can try this

Code:

//ANYNAME   DD   DSN=DD1.DSN,DISP=SHR
//                 DD   DDNAME=DDNAME1
//                 DD   DDNAME=DDNAME2
//                 DD   DSN=DD2.DSN,DISP=SHR
.
.
.
//DDNAME1   DD   *
DATA
/*
.
.
//DDNAME2   DD   *
DATA
/*
.
.



Cheers
Brian
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Fri Jul 09, 2004 9:17 pm    Post subject: Reply with quote

Brian's example reminded me of this technique for providing in-stream data to a cataloged procedure:

In proclib...
Code:

//PROCA    PROC
//PSA      EXEC  PGM=PGMA       
.
.
.
//ANYNAME  DD   DSN=DD1.DSN,DISP=SHR
//         DD   DDNAME=DDNAME1
//         DD   DDNAME=DDNAME2
//         DD   DSN=DD2.DSN,DISP=SHR
.
.
//PSB      EXEC  PGM=PGMB
.
.       

In JOB stream...
Code:

//JOBA    JOB ....MSGCLASS=H,NOTIFY=MYTSOID,...
//STEPA  EXEC  PROCA
//PSA.DDNAME1  DD   *
DATA
/*
.
.
//PSA.DDNAME2  DD   *
DATA
/*
.
.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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