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
 

 

Syncsort Copy different record length format files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort Copy different record length format files
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

Moderator Team Head


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

PostPosted: Thu Nov 20, 2008 6:47 pm    Post subject: Reply to: Syncsort Copy different record length format files
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 20, 2008 8:13 pm    Post subject:
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    Post subject:
Reply with quote

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

http://***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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 20, 2008 8:55 pm    Post subject:
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: 2276
Location: @my desk

PostPosted: Thu Nov 20, 2008 9:27 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Nov 21, 2008 3:17 am    Post subject:
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: 500
Location: USA

PostPosted: Sat Nov 22, 2008 3:16 am    Post subject:
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    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 Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


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