IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How do add a specific string in the new line by default.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 21, 2006 4:58 pm
Reply with quote

Hi,
i am writing a JCL.
By default i need to have // in the 1-2 coloums in the member.

I remember a command where we can specify the string to repeat...but could n't recollect it.

Could anyone help me out?

~Vamsi
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 21, 2006 6:10 pm
Reply with quote

2 options:
1. Use the MASK command.
2. Use copy ('C') and override('O').

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

New User


Joined: 21 Jul 2006
Posts: 49
Location: California

PostPosted: Tue Aug 22, 2006 12:01 am
Reply with quote

Try this:
On the command line within the member type
c 1 2 '@@' '//' all

c - Change
1 2 - start-end of the coulmn
'@@' - For ur member give Spaces instead of @
'//' - replace string
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 22, 2006 11:41 am
Reply with quote

hi Archana,

c 1 2 '@@' '//' all wasn't working.
May be......what you mean was
C 1 2 P'@' '//'

Am i write?? I wan '//' get inserted automatically when ever i write a new line. But the command will only after i completed the code.

Thanks
~Vamsi
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 22, 2006 12:20 pm
Reply with quote

Have you read my comment about MASK?

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

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 22, 2006 12:45 pm
Reply with quote

Hi ofer71,

I got about MASK.

Thanks,
~Vamsi
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts ICETOOL to SUM String DFSORT/ICETOOL 1
Search our Forums:


Back to Top