People-
Anyone please help me in my problem. I have to create 2 files out of 1 input file using Syncsort. Output 1 needs to select a certain range in column 1 of input, using same layout. Output 2 needs to include some data and at the same time, reformat it to a different layout. Here is my sortcard:
OUTFIL FILES=01,
INCLUDE=(01,07,CH,GE,C'9306100',AND,
01,07,CH,LE,C'9306299')
OUTFIL FILES=02,
INCLUDE=(01,04,CH,EQ,C'9306')
OUTREC FIELDS=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20)
When I ran this, it is giving me this error. Anyone, please please help me.
WER276B SYSDIAG= 3748823, 9266405, 9266405, 3118437
WER164B 1,028K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 20K BYTES RESERVE REQUESTED, 1,004K BYTES USED
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER267A SORT STATEMENT : STATEMENT NOT FOUND
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
Syncsort: Problem in creating 2 output files
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: Syncsort: Problem in creating 2 output files
First of all, this is a SYNCSORT problem, not a DFSORT problem.
Looks to me like you're missing a comma and are using the wrong parameter:
Looks to me like you're missing a comma and are using the wrong parameter:
Code: Select all
OUTFIL FILES=01,
INCLUDE=(01,07,CH,GE,C'9306100',AND,
01,07,CH,LE,C'9306299')
OUTFIL FILES=02,
INCLUDE=(01,04,CH,EQ,C'9306'),
OUTREC=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20)
Re: Syncsort: Problem in creating 2 output files
Try this SORT JOB,
As this error message states
Code: Select all
SORT FIELDS=COPY
OUTFIL FILES=01,
INCLUDE=(01,07,CH,GE,C'9306100',AND,
01,07,CH,LE,C'9306299')
OUTFIL FILES=02,
INCLUDE=(01,04,CH,EQ,C'9306'),
OUTREC FIELDS=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20)
As this error message states
you did not include the SORT FIELDS=....WER267A SORT STATEMENT : STATEMENT NOT FOUND
-
- Posts: 2
- Joined: Thu Oct 18, 2007 10:48 pm
- Skillset: COBOL, JCL, SQL, DB2, IMS, VSAM
- Referer: Google
Re: Syncsort: Problem in creating 2 output files
Ok-
I tried this,
SORT FIELDS=COPY
OUTFIL FILES=01,
INCLUDE=(01,07,CH,GE,C'9306100',AND,
01,07,CH,LE,C'9306299')
OUTFIL FILES=02,
INCLUDE=(01,04,CH,EQ,C'9306'),
OUTREC=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20)
And I got this new error message
WER247A SORTOF02 HAS INCOMPATIBLE LRECL
I suspect the reason is that my SORTOF01 LRECL is 154 and my SORTOF02 is 80. Is there any more wokaround on this?
I tried this,
SORT FIELDS=COPY
OUTFIL FILES=01,
INCLUDE=(01,07,CH,GE,C'9306100',AND,
01,07,CH,LE,C'9306299')
OUTFIL FILES=02,
INCLUDE=(01,04,CH,EQ,C'9306'),
OUTREC=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20)
And I got this new error message
WER247A SORTOF02 HAS INCOMPATIBLE LRECL
I suspect the reason is that my SORTOF01 LRECL is 154 and my SORTOF02 is 80. Is there any more wokaround on this?
-
- Posts: 81
- Joined: Sat Jun 09, 2007 4:24 am
- Skillset: Some?
- Referer: mcmillan
- Location: Tucson AZ
Re: Syncsort: Problem in creating 2 output files
engrpedro wrote:WER247A SORTOF02 HAS INCOMPATIBLE LRECL
I suspect the reason is that my SORTOF01 LRECL is 154 and my SORTOF02 is 80. Is there any more wokaround on this?
I do recall that you need to account for all the characters in the OUTREC - you only have specified about 45 for 02......
Re: Syncsort: Problem in creating 2 output files
engrpedro
Change your OUTREC statement to
and replace LRECL with the LRECL of your O/P file.
Change your OUTREC statement to
Code: Select all
OUTREC=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20,
LRECL:X)
and replace LRECL with the LRECL of your O/P file.
-
- Global moderator
- Posts: 369
- Joined: Tue Feb 26, 2008 11:15 pm
- Skillset: Syncsort MFX for z/OS
- Referer: Dick Scherrer
- Location: USA
- Contact:
Re: Syncsort: Problem in creating 2 output files
engrpedro wrote:WER247A SORTOF02 HAS INCOMPATIBLE LRECL
I suspect the reason is that my SORTOF01 LRECL is 154 and my SORTOF02 is 80. Is there any more wokaround on this?
You can either pad the output in OUTREC by coding
Code: Select all
OUTREC=(01:14,03,
04:12,02,
06:09,03,
09:01,07,
16:17,09,
25:28,20,
80:X)
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Restart a program that has only GSAM output files
by RajaniSiddineni » Thu Jul 22, 2021 7:48 pm » in IMS DB/DC - 1
- 3990
-
by Isakshields
View the latest post
Mon Aug 09, 2021 5:57 pm
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4437
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
- 6
- 3198
-
by willy jensen
View the latest post
Thu Dec 05, 2024 11:59 pm
-
-
Need help in a rexx scenario for creating and updating PDS
by princesam89 » Fri Feb 02, 2024 4:20 pm » in CLIST & REXX - 3
- 2410
-
by willy jensen
View the latest post
Sat Feb 03, 2024 8:07 pm
-
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1766
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-