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
 
Command to replace data at a particular position.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rickyc.mathew

New User


Joined: 06 Mar 2008
Posts: 30
Location: kottayam

PostPosted: Fri Feb 11, 2011 2:55 pm    Post subject: Command to replace data at a particular position.
Reply with quote

Hi All,

Can anyone help me to resolve an issue.I have a file which has some data at its 150th position.I want to change all the existing data at 150th position with spaces.Is there any command available for doing that.

Thanks ,
Rck
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Fri Feb 11, 2011 3:22 pm    Post subject:
Reply with quote

this is a command: (ispf edit macro command)
Code:
chg all p'=' ' ' 150 150


now since you posted this in the JCL forum
(which history proves that it does not mean the question pertains to JCL
i assume you are looking for CONTROL CARDS for some utility to cause the change.

what utilities do you have available?
DFSORT
FILEAID
SYNCSORT
CA-SORT
.....
....
...

and as far as resolving the issue....
the issue seems to be your ignorance of mainframe utilities
and resolving the issue would require education.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Feb 12, 2011 12:25 am    Post subject:
Reply with quote

Hello,

Do you have this running as needed?

If not, where are you stuck. . .
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: Sat Feb 12, 2011 12:35 am    Post subject:
Reply with quote

Quote:
Can anyone help me to resolve an issue.I have a file which has some data at its 150th position.I want to change all the existing data at 150th position with spaces.Is there any command available for doing that.


If you want to overlay position 150 in every record with a blank, you can use these DFSORT control statements:

Code:

    OPTION COPY
    INREC OVERLAY=(150:X)


If you want to do something else, you need to explain more clearly what exactly it is you want to do.
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 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am

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