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

decrease a numeric field in file by JCL


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
fungyufa

New User


Joined: 18 Jun 2005
Posts: 4
Location: china

PostPosted: Thu Oct 23, 2008 8:17 am
Reply with quote

aaa123dd
ddd345ss

assume above data in file,
how to do if I want to decrease the field (4,3) by 2 with JCL
icon_rolleyes.gif icon_question.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 23, 2008 8:26 am
Reply with quote

Hi,

is this a COBOL or a DFSORT/SYNCSORT question ?


Gerry
Back to top
View user's profile Send private message
fungyufa

New User


Joined: 18 Jun 2005
Posts: 4
Location: china

PostPosted: Thu Oct 23, 2008 8:32 am
Reply with quote

by dfsort,
just don't want to write program for it
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 23, 2008 8:38 am
Reply with quote

Hi,

try this
Code:
//S1       EXEC PGM=ICEMAN                       
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD *                                 
AAA123DD                                         
DDD345SS                                         
/*                                               
//SORTOUT  DD SYSOUT=*                           
//SYSIN    DD *                                 
  OPTION COPY                                   
  OUTREC OVERLAY=(4:4,3,ZD,SUB,+2,EDIT=(TTT)) 
/*                                               


Gerry
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 -> DFSORT/ICETOOL

 


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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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
Search our Forums:

Back to Top