View previous topic :: View next topic
|
Author |
Message |
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
Input file has LRECL = 61 and RECFM = VB
Output file should have LRECL = 24 and RECFM = VB |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Don't you have a concern about data truncation? |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
|
|
I want first 24 bytes only.
Data truncation will not be a problem in my program |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you read ANY documentation or searched the forums for examples.
There are many examples on the forum which you could so easily find. |
|
Back to top |
|
|
lalitha.p
New User
Joined: 11 Sep 2008 Posts: 13 Location: India
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look through the DFSORT forum and look see. There are so many examples of only selecting various fields from a record.
I assume that you have SYNCSORT as you have posted in the JCL forum, but many of the solutions are the same or very similar. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
but it is not working for me. |
Can you post the card you have tried, what you're getting and what you're expecting? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Suggest you post
1. Sample input
2. Expected output
3. JCL used
4. If there was any abend - complete diagnostic information.
If I go with the Subject title, as your description doesn't provides much, the answer is Yes - Syncsort Copy different record length format files. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
lalitha.p,
Did you try:
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1,4,5,20)
|
If you get an error, please post the sysout messages. |
|
Back to top |
|
|
|