IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort Copy different record length format files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lalitha.p

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Thu Nov 20, 2008 6:37 pm
Reply with quote

Input file has LRECL = 61 and RECFM = VB

Output file should have LRECL = 24 and RECFM = VB
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 20, 2008 6:47 pm
Reply with quote

Don't you have a concern about data truncation?
Back to top
View user's profile Send private message
lalitha.p

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Thu Nov 20, 2008 7:06 pm
Reply with quote

I want first 24 bytes only.

Data truncation will not be a problem in my program
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 20, 2008 8:13 pm
Reply with quote

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
View user's profile Send private message
lalitha.p

New User


Joined: 11 Sep 2008
Posts: 13
Location: India

PostPosted: Thu Nov 20, 2008 8:37 pm
Reply with quote

I tried already the following logic. but it is not working for me.

***READ FORUM RULES***.net/vbforums/showthread.php?t=5417

Could you pls help if you have any
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 20, 2008 8:55 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Nov 20, 2008 9:27 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Nov 21, 2008 3:17 am
Reply with quote

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
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Sat Nov 22, 2008 3:16 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top