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
 
GETTING SOME ERROR WHILE SORTING THE FILE

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

New User


Joined: 03 Dec 2008
Posts: 3
Location: MUMBAI

PostPosted: Mon Jan 19, 2009 7:34 pm    Post subject: GETTING SOME ERROR WHILE SORTING THE FILE
Reply with quote

Hi,

When I uploaded a text file Tabs are inserted in the input files because of file transfer.

My Input file after uploading is :
Code:
002 ABCDEF
0003 GHIJKL
00004 MNOPQ

While my desired input file is:

Code:
002     ABCDEF
0003   GHIJKL
00004 MNOPQ


I am using following SORT control card

Code:
//SORT.SYSIN   DD *                             
     OUTREC IFTHEN=(WHEN=(3,1,CH,EQ,X'05'),     
               FINDREP=(IN=C'05',OUT=X'4040'))   
/*                                               

but getting syntax error

Code:
SYSIN :                                       
     INREC IFTHEN=(WHEN=(3,1,CH,EQ,X'05'),   
           FINDREP=(IN=X'05',OUT=X'4040'))     
           *                                 
WER268A  INREC STATEMENT   : SYNTAX ERROR     

Please suggest.

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message

PIYUSH.MAHESHWARI
Warnings : 1

New User


Joined: 03 Dec 2008
Posts: 3
Location: MUMBAI

PostPosted: Mon Jan 19, 2009 7:37 pm    Post subject:
Reply with quote

Sorry by mistake desired and actual file I posted above looking same.
In the desired input file the second field should start at 7 position
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Mon Jan 19, 2009 9:25 pm    Post subject: Re: GETTING SOME ERROR WHILE SORTING THE FILE
Reply with quote

PIYUSH.MAHESHWARI wrote:

INREC IFTHEN=(WHEN=(3,1,CH,EQ,X'05'),
FINDREP=(IN=X'05',OUT=X'4040'))
*
WER268A INREC STATEMENT : SYNTAX ERROR

Support for FINDREP was included in SyncSort for z/OS 1.3.2. Based on the message, I can only assume that you are running an earlier release of the product. If you are a licensed SyncSort for z/OS customer and are interested in upgrading to the current release, please contact me offline or contact SyncSort Mainframe Product Services directly. This is a free upgrade.
Back to top
View user's profile Send private message
PIYUSH.MAHESHWARI
Warnings : 1

New User


Joined: 03 Dec 2008
Posts: 3
Location: MUMBAI

PostPosted: Tue Jan 20, 2009 1:43 pm    Post subject: Reply to: GETTING SOME ERROR WHILE SORTING THE FILE
Reply with quote

THANKS ALYSSA.
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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