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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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