Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8657
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: 8657
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: 2353
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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us