Syntax or utility for adding mesage at a particular position



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Syntax or utility for adding mesage at a particular position

Postby mainframe_amit » Tue Oct 07, 2008 12:57 am

I want to add message in a Sequential file at a particular column in a particular row.
Can any body tell me if there is any TSO command for copying or replacing particular text from given column number in a given row or if it can be done with any utility like DFSORT.
mainframe_amit
 
Posts: 6
Joined: Wed Aug 06, 2008 11:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: Syntax or utility for adding mesage at a particular position

Postby Bill Dennis » Tue Oct 07, 2008 1:10 am

Are you inserting a new record or does the row exist?
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Syntax or utility for adding mesage at a particular position

Postby dick scherrer » Tue Oct 07, 2008 1:24 am

Hello Amit and welcome to the forum,

It will help if you post some sample data, the message you want to add, and the resulting data after the message has been added. If there could multiple formats, show them.

When you post these, please use the "Code" tag for readability (do not use a screen capture). Also, use Preview to see how your post will appear to the forum (rather than how it appears in the reply editor). When you are satisfied with how your post appears, Submit.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Syntax or utility for adding mesage at a particular position

Postby mainframe_amit » Tue Oct 07, 2008 11:08 am

Hello Dick, Thanks for the suggestions. I will take care of it in future.

Here I am not talking about any code. But my query is if there is any TSO command for replacing (changing) the existing text in a known row at a known column.

Like we have below command for changing the known text at a known column:
C ALL 'AMIT' 'MY NAME IS AMIT' 50

This command would change all 'AMIT' text which starts from column number 50 only to 'MY NAME IS AMIT'

But if I want to change above text for a particular or known row number, do we have an TSO Command for it.

Please let me know i am not clear.

Thanks
Amit Goel
mainframe_amit
 
Posts: 6
Joined: Wed Aug 06, 2008 11:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: Syntax or utility for adding mesage at a particular position

Postby Bill Dennis » Tue Oct 07, 2008 7:13 pm

An option is to use a stacked command to scroll down to the row and change only one occurence, after doing a RESET to remove message lines which might affect the line #.

Example, Scroll to line 5 and change the string.
RESET;DOWN 5;C 'AMIT'  'MY NAME IS AMIT' 50
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post