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
 
Line command to overwrite the line num with the given data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
pattabiraman.baskaran

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Tue Feb 13, 2007 5:19 pm    Post subject: Line command to overwrite the line num with the given data
Reply with quote

Hi,

My requirement is to overwrite a line number of the JCL with the given data. Is there any command in REXX to do it?

Example:

000001 //C0177C1T JOB ('TEST'),MSGCLASS=O,NOTIFY=&SYSUID,CLASS=T


Output should be:

LINE01 //C0177C1T JOB ('TEST'),MSGCLASS=O,NOTIFY=&SYSUID,CLASS=T

The line number "000001" should be replaced by "LINE01".

Please help me out to handle this.
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Feb 13, 2007 5:28 pm    Post subject: Re: Line command to overwrite the line num with the given da
Reply with quote

Read in update mode until you get to the desired record.

Use the OVERLAY command to replace the number.

Write the updated record.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Feb 13, 2007 6:20 pm    Post subject:
Reply with quote

I don't believe you can overlay the editor's line number just like this; I think you should design your own edit panel.

O.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm

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