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

Command to replace data at a particular position.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Fri Feb 11, 2011 3:22 pm
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

Moderator Emeritus


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

PostPosted: Sat Feb 12, 2011 12:25 am
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 Developer


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

PostPosted: Sat Feb 12, 2011 12:35 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top