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
 
Need help in SYNCSORT-- Sorting a VB file

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

New User


Joined: 06 Oct 2006
Posts: 6

PostPosted: Sat Nov 17, 2007 1:13 am    Post subject: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

Hi,
My requirement is I have to change the key length value in VSAM file.
the key length is 36. I want to change the value of the field starting from 24th place to another value.And writes the output to sequential file.
I am giving the SORT condition like this.

The total record length of the input file is 1036.
The input file is VB file and we are writing it to sequential VB file.

SORT FIELDS=COPY
OUTREC BUILD=(1,4,5:1,23,24,8,CHANGE=(8,C'ABCMN006',C'LOCAL '),
32:32,1000)

We are getting the error "OUTREC HAS OVERLAPPING COLUMNS SPECIFIED ".

Any help on this is highly appreciated.

Regards,
Rohit.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Sat Nov 17, 2007 1:18 am    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

Do You really think that posting THREE times will give You more answers ??
Back to top
View user's profile Send private message
rohit4u

New User


Joined: 06 Oct 2006
Posts: 6

PostPosted: Sat Nov 17, 2007 1:34 am    Post subject:
Reply with quote

Since the question is same.....i wont mind if i get different answers..
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: Sat Nov 17, 2007 1:36 am    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

Ah-ha! The keyword is the "SYNCSORT" in the Subject. Now it's in the correct forum.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Sat Nov 17, 2007 9:31 pm    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

rohit4u,

Quote:
OUTREC BUILD=(1,4,5:1,23,24,8,CHANGE=(8,C'ABCMN006',C'LOCAL '),
32:32,1000)


In your outrec build,first u r copying the first 4 bytes from the input file and then in the 5th position again you are copying from the first byte till 23. Here overlapping columns are specified and hence the error.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Mon Nov 19, 2007 11:25 pm    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

If you do not want to write the RDW to the output twice, then you can simply code:
Code:

//SYSIN DD *
  SORT FIELDS=COPY
  OUTREC BUILD=(1,23,24,8,CHANGE=(8,C'ABCMN006',C'LOCAL '),
  32:32,1000)

However, if you have some reason why it is necessary, then you can modify the last field position as follows:
Code:

//SYSIN DD *
  SORT FIELDS=COPY
  OUTREC BUILD=(1,4,5:1,23,24,8,CHANGE=(8,C'ABCMN006',C'LOCAL '),
  36:32,1000)

If neither of these provide the desired output, then please post the new error message produced.
Back to top
View user's profile Send private message
rohit4u

New User


Joined: 06 Oct 2006
Posts: 6

PostPosted: Mon Nov 19, 2007 11:52 pm    Post subject:
Reply with quote

Hi Alissa,
Thanks for your reply. I tried the way what you have mentioend and got the following error.

OUTREC BUILD=(1,4,5:1,23,24,8,CHANGE=(8,C'CORMN006',C'LOCAL '),
36:32,1000)

8,944K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
0 BYTES RESERVE REQUESTED, 3,425,768 BYTES USED
20K BYTES OF EMERGENCY SPACE ALLOCATED
SORTIN : RECFM=V ; LRECL= 1036; CISIZE = 8192
OUTREC RECORD LENGTH = 1035
SORTOUT : RECFM=V ; LRECL= 1036; BLKSIZE= 1040
5,868K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,
0 BYTES RESERVE REQUESTED, 300K BYTES USED
OUTREC - SHORT RECORD
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 11:05 am    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

rohit,

Code:
OUTREC - SHORT RECORD


This clearly states that the record length of few records in your VB file is less than the condition specified in your OUTREC BUILD.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 11:11 am    Post subject: Reply to: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

rohit,

Search this forum for VLSHRT and use that parameter in your sort card.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Nov 20, 2007 10:52 pm    Post subject: Re: Need help in SYNCSORT-- Sorting a VB file
Reply with quote

rohit4u wrote:
The input file is VB file and we are writing it to sequential VB file.

Sorry - I missed that in your original post.

Try this:
Code:

//SYSIN DD *
  SORT FIELDS=COPY
  OUTREC BUILD=(1,4,5:1,23,24,8,CHANGE=(8,C'ABCMN006',C'LOCAL '),
  36:32)
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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