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
 
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 column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm

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