IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

GETTING SOME ERROR WHILE SORTING THE FILE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 496
Location: USA

PostPosted: Mon Jan 19, 2009 9:25 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top