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 

Prime KSDF using SORT/IDCAMS

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


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Tue Feb 28, 2006 8:15 am    Post subject: Prime KSDF using SORT/IDCAMS Reply with quote

Hi

Is it possible to prime a KSDF or adding a dummy record '000000000'
using SORT or IDCAMS.
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Feb 28, 2006 9:02 am    Post subject: Reply with quote

Vinodch,

Try this

Code:

//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD * 
                                       
//SORTOUT  DD DSN=YOUR EMPTY KSDS,
//            DISP=SHR   
//SYSIN    DD *
 SORT FIELDS=COPY
 OUTREC FIELDS=(C'000000000',n-9X)
/*                             


Change n-9 on the outrec fields to your actual lrecl - 9 bytes . ie if you ksds cluster length is 100, then the control card should be as follows
Code:

//SYSIN    DD *
 SORT FIELDS=COPY
 OUTREC FIELDS=(C'000000000',91X)
/*                             


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


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Wed Mar 01, 2006 1:55 am    Post subject: Reply with quote

Hi Kolusu

I tried the job mentioned by you but still could not able to add a dummy record, file remains empty.
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Mar 01, 2006 4:20 am    Post subject: Reply with quote

Quote:

Hi Kolusu

I tried the job mentioned by you but still could not able to add a dummy record, file remains empty.

Vinodch,

Look at the job posted by me carefully. The SORTIN is having 1 all space record and if you ran my job as is your Vsam dataset should have 1 record.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Wed Mar 01, 2006 5:41 am    Post subject: Reply with quote

Sorry Kolusu I missed to notice the space record, now its working fine.

Thanks for your Help !
_________________
Thanks,
Vinod.
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 -> Utilities 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