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: 6968
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm

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