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 

Append Records using DFSORT

 
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
arunkantony
Beginner


Joined: 28 Feb 2006
Posts: 6
Topics: 2
Location: India

PostPosted: Sun Apr 23, 2006 5:43 am    Post subject: Append Records using DFSORT Reply with quote

Hi,

Is is possible to append the recods in a dataset(FB) into a single record using DFSORT? If yes, what can be the maximum byte the output dataset(VB or FB) can hold in that single record?

The control card that I used is
Code:
OPTION COPY
OUTFIL OUTREC=(1,40),
HEADER1=(1:'<A>  ****THIS IS THE START **** </A>'),
TRAILER1=(1:'<C>  **** END **** </C>'),REMOVECC
END

Input:
Code:
<A>  ****This is the start **** </A>
<DATA>001ABC</DATA>
<DATA>002DEF</DATA>
<DATA>003GHI</DATA>
<C>  **** END **** </C>

Output:
Code:
<A>  ****This is the start **** </A><DATA>001ABC(/DATA><DATA>002DEF(/DATA><DATA>003GHI(/DATA><C>  **** END **** </C>


NOTE:
The header, trailer and data have different lengths. But all the data will be having the same length.

Please help!

Thanks,
Arun
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Apr 24, 2006 5:14 am    Post subject: Reply with quote

Quote:

Is is possible to append the recods in a dataset(FB) into a single record using DFSORT? If yes, what can be the maximum byte the output dataset(VB or FB) can hold in that single record?


arunkantony,

yes it possible , but what happens if you have more records that cannot fit as a single record?

Check this link which explains in detail about the LRECL parameter.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/12.37?DT=20030423085347

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
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 -> 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