Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us