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
 

 

need to Change the column value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Fri Nov 02, 2007 10:56 am    Post subject: need to Change the column value
Reply with quote

Good morning friends,
i have 1 file which is having many fields. in that 3rd field lenth is 10bytes
i want to change the 1 digit value to some no.

ex - 507xxxxxxx
462xxxxxxx
836xxxxxxx

i want change 1st position of all the no to 1 i.e
107xxxxxxx
162xxxxxxx
137xxxxxxx

is there any commadn plz suggest me.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Fri Nov 02, 2007 11:25 am    Post subject:
Reply with quote

Reddy,

Your IP and OP length is different (10 & 11). You want to change the file lrecl also?
Back to top
View user's profile Send private message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Fri Nov 02, 2007 11:48 am    Post subject: hi
Reply with quote

no murali
just assume i have 1 file.i want to edit a particular field.

ex- fld3
r1-3214x
r2-7124x
r3-4144x

i want update this file into

ex- fld3
r1-1214x
r2-1124x
r3-1144x

here i have changed all the 1st col value to 1 by manually.in case if i have millions of recs.what to do????
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: Fri Nov 02, 2007 7:33 pm    Post subject:
Reply with quote

Hello,

In tso/ispf, edit your data, key
Code:
c all p'=' '7' 50 
and press enter.

A seven will be placed in pos 50 in all records. Change the 7 to whatever value you want and change the 50 to whatever position you want.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


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