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 

Adding a to a field using syncscort

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


Joined: 04 Aug 2004
Posts: 6
Topics: 3

PostPosted: Tue Aug 24, 2004 9:25 am    Post subject: Adding a to a field using syncscort Reply with quote

hi,
We have syncsort in our shop. My requirement is I have a file with a singe record with the following details

File contains
"Updated 00010 TIMES"

I want to add 1 to "00010". I need to achieve this using Syncsort. Is there any keyword as "ADD" in syncsort?

Any help on this is highly appreciated.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Aug 24, 2004 9:49 am    Post subject: Reply with quote

cathygomez,

The following JCL will give you the desired results.

Code:

//STEP0100  EXEC  PGM=SORT                                         
//SYSOUT    DD SYSOUT=*                                             
//SORTIN    DD *                                                   
"UPDATED 00010 TIMES"                                               
//SORTOUT   DD SYSOUT=*                                             
//SYSIN     DD *                                                   
  SORT FIELDS=COPY                                                 
  OUTREC FIELDS=(1,9,                          $ FIRST 9 BYTES     
                 +1,ADD,10,5,ZD,EDIT=(TTTTT),  $ ADD 1 TO THE COUNT
                 15,66)                        $ REST OF THE DATA   
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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