Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Change the Field content of the record as the above example

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Rehana

New User


Joined: 12 Feb 2007
Posts: 13
Location: chennai

PostPosted: Tue Apr 24, 2007 2:05 pm    Post subject: Change the Field content of the record as the above example
Reply with quote

Eg:-

ABCDEFGH

ABCD99GH

I want to change the record as the above example.

Thank you
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Apr 24, 2007 2:20 pm    Post subject:
Reply with quote

Sort copy with inrec/outrec will do that.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Tue Apr 24, 2007 5:01 pm    Post subject: Re: Change the Field content of the record as the above exam
Reply with quote

Test this....

Code:

//STEP1 EXEC PGM=SORT
//SORTIN DD *
ABCDEFGH
/*
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
  SORT FIELDS=COPY
  OUTREC FIELDS=(1:1,4,C'99',7:7,2)
/*
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Apr 24, 2007 8:45 pm    Post subject:
Reply with quote

Rehana,

Assuming you want to put C'99' in positions 5-6 of every record, you can use a DFSORT job like this:

Code:

//S1 EXEC PGM=ICEMAN                           
//SYSOUT    DD SYSOUT=*                       
//SORTIN DD DSN=...  input file           
//SORTOUT  DD DSN=...  output file                       
//SYSIN     DD *                               
  OPTION COPY                                 
  INREC OVERLAY=(5:C'99')                     
/*                                             


If you want to do something else, please explain in more detail what you want to do.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us