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
 

 

TSO change command needed

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

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Thu Oct 11, 2007 8:20 pm    Post subject: TSO change command needed
Reply with quote

Hi all

I have a file as below
----5-----10-----15-----20-------
0001 ABS 20070621
0001 NBS 20070621
0002 BBK 20070621
0003 CBS 20070621
0004 ABS 20070621
0005 PBK 20070621

I have to change all the dataset of the file to 20071011
as below
i know it can be done by sort (outrec)
is there any tso command or any other way to achieve the same
----5-----10-----15-----20-------
0001 ABS 20071011
0001 NBS 20071011
0002 BBK 20071011
0003 CBS 20071011
0004 ABS 20071011
0005 PBK 20071011



Thanks n Regards
Prasad
Back to top
View user's profile Send private message

krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Oct 11, 2007 8:41 pm    Post subject:
Reply with quote

sivatechdrive
if the date is in 10th position and all the date starts from 2, then TSO command would be
Code:

C ALL 10 '2' '20071011'
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: Thu Oct 11, 2007 9:25 pm    Post subject:
Reply with quote

Hello,

This
Code:
C ALL 10 '2' '20071011'
generates "200710110070621"
on this system. . . . Any non-blanks that would be overritten are shifted right to make room for the "inserted" data. If the positions to be over-written are blank the 0071011 is put there and characters further to the right are not shifted.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Oct 11, 2007 9:30 pm    Post subject:
Reply with quote

It looks to me that you need:
Code:
C ALL 10 '20070621' '20071011'
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Oct 11, 2007 10:43 pm    Post subject:
Reply with quote

By the way, it has nothing to do with TSO. This is an ISPF Edit Command.

O.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Oct 11, 2007 11:20 pm    Post subject: Reply to: tso change command needed
Reply with quote

For an ISPF EDIT command, I'd go with

c all p'xxxxxxx' '20071011' 10
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Fri Oct 12, 2007 12:05 am    Post subject:
Reply with quote

The command you gave looks for x's icon_sad.gif

c all p'########' '20071011' 10
Would look for 8 numeric digits in starting in col 10.

c all p'========' '20071011' 10
Would look for 8 characters in starting in col 10.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Oct 12, 2007 12:08 am    Post subject: Reply to: tso change command needed
Reply with quote

Yep, it was a typo. I meant to use the equals (=), i.e. any character.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Fri Oct 12, 2007 9:54 am    Post subject:
Reply with quote

Hi Sivatechdrive,

Use This

Code:
C '20070621' '20071011' ALL
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Fri Oct 12, 2007 10:08 am    Post subject:
Reply with quote

If you want change in the whole file where ever from 20070621 to 20071011 the you have to use C ALL '20070621' '20071011'
But if u want to change only in a particualr field then use that field starting position on chage command as
C ALL 10 '20070621' '20071011'
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
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