Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Passing data from REXX to C programme... chong.zhou CLIST & REXX 2 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us