Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Writing from a KSDS file to a sequential file without keys

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Milind.Bhoir

New User


Joined: 10 Oct 2009
Posts: 3
Location: Mumbai

PostPosted: Thu Oct 22, 2009 7:17 pm    Post subject: Writing from a KSDS file to a sequential file without keys
Reply with quote

I have a KSDS file of record length 271, with key of 15 bytes. I need to write all data from this file to a sequential file without the 15 byte key i.e. my output sequential file would be of record length 256.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 22, 2009 7:42 pm    Post subject:
Reply with quote

And where in the file is this 15 byte key
Back to top
View user's profile Send private message
Milind.Bhoir

New User


Joined: 10 Oct 2009
Posts: 3
Location: Mumbai

PostPosted: Thu Oct 22, 2009 7:44 pm    Post subject:
Reply with quote

the key starts at position 1 till 15.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 22, 2009 7:47 pm    Post subject:
Reply with quote

both sort products can reduce the record size.

but before anyone can help you, you need to decide about the 14-15 typo that you did not bother to proof (i.e. PREVIEW).

you say 256 which would indicate 15, but who knows if 256 is really what you want?
Back to top
View user's profile Send private message
Milind.Bhoir

New User


Joined: 10 Oct 2009
Posts: 3
Location: Mumbai

PostPosted: Thu Oct 22, 2009 7:55 pm    Post subject:
Reply with quote

Out of an input rec length of 271 bytes, I dont need the first 15 bytes in my output sequential file. That means, I need to write record starting at position 16 till the 271st record of my input vsam into my seq output file. That makes my output file to have a rec length of 256.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 22, 2009 8:04 pm    Post subject:
Reply with quote

Half of the job is stating quite clearly exactly what it is that you wish to achieve, what tools you can use being one of them.

All you have said is that you want to copy a KSDS to a PS and omit the key from the input record. We had to ask you where the key was located in the record because you did not tell us.

Is the KSDS of fixed length records or variable length records. What RECFM and LRECL is the output going to be.

You have posted this in the JCL forum, but have failed to say which program / utility you want to use to achieve this. How do we know what to suggest unless you say that you want to use a sort product, or some other product.

If you are happy using a sort product, which one are you using, SYNCSORT, DFSORT or CA-SORT.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us