MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Change the Sign Using SYNCSORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Tue Jan 09, 2007 2:02 am    Post subject: Change the Sign Using SYNCSORT Reply with quote

Hi All,
I was going through previous post to change the sign internally and found below mentioned link

http://www.mvsforums.com/helpboards/viewtopic.php?p=721&sid=c17c5fdf3184cf535810ff4f08cfb96b

Now I have dataset with LRECL=75 and I want to change the sign of a field which starts at 36th position and length is 5 bytes.
Data Type of that field is
Code:
  PIC S9(5)


I tried using below JCL,
Code:

//SSJAN04  EXEC PGM=SORT                                             
//SORTIN   DD DSN=MY.INPUT.DATASET,DISP=SHR             
//SORTOUT  DD DSN=MY.OUTPUT.DATASET,DISP=OLD             
//SYSUDUMP DD SYSOUT=H                                               
//SYSOUT   DD SYSOUT=*                                               
//SYSIN    DD *                                                       
SORT FIELDS=COPY                                                     
INREC FIELDS=(1,35,-1,MUL,36,5,PD,PD,LENGTH=5,41,75)                 
/*                                                                   
//                                                                   

Code:
SORT FIELDS=COPY                                     
     *                                               
INREC FIELDS=(1,35,-1,MUL,36,5,PD,PD,LENGTH=5,41,75)
      *                                             
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT     
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT     
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000       


I am using below version for SYNCSORT.

SYNCSORT FOR Z/OS 1.2.0.1R

Can anyone please suggest me what is the problem here?
Back to top
View user's profile Send private message
satheeshs
Beginner


Joined: 06 Jul 2006
Posts: 13
Topics: 3
Location: 'Mainframe World'

PostPosted: Tue Jan 09, 2007 4:45 am    Post subject: Reply with quote

I would suggest putting your sysin cards 2 spaces after the sysin statement
_________________
Satheesh
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group