IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc...
Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

What't the command for Ovelaying a default value in a column

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
View previous topic :: View next topic  
Author Message
avinashgup



Joined: 03 Aug 2007
Posts: 7
Location: Naperville

Posted: Fri Jul 18, 2008 7:54 am    Post subject: What't the command for Ovelaying a default value in a column  

I have a dataset and i need to overlay the field starting from column 106-110 with values 999.99. This field currently has different values.Field is declared as S999V99.
I have heard that we can use the line command overlay but I am not sure how to use it.
Back to top  
0d311



Joined: 17 Jun 2007
Posts: 52
Location: manila

Posted: Fri Jul 18, 2008 9:51 am    Post subject: Re: What't the command for Ovelaying a default value in a co  

avinashgup wrote: This field currently has different values.

If you have an existing value on the field, it cannot be overlayed.

You can do an overlay, like this
Code:
****** ***************************** Top of Data ******************************
C      TEST                                                                   
O                                                                             
****** **************************** Bottom of Data ****************************
Back to top  
murmohk1



Joined: 29 Jun 2006
Posts: 1481
Location: Bangalore,India

Posted: Fri Jul 18, 2008 10:39 am    Post subject:  

od,

Quote: If you have an existing value on the field, it cannot be overlayed.

Your suggestion may not work properly as the source statement should not contain a value in anyother col other than 106-110. consider this

Code: ***************************** To
//SOURCE-LINE    TEST           
//TARGET LINE                   

If you try to overlay 'source-line', 'target line' becomes 'target-line'.
Back to top  
expat



Joined: 14 Mar 2007
Posts: 3225
Location: Brussels once more ...

Posted: Fri Jul 18, 2008 12:48 pm    Post subject:  

If the OP was to give an example of input and expected output we may be able to offer some guidance rather than guesses.
Back to top  
Bill Dennis



Joined: 17 Aug 2007
Posts: 282
Location: Iowa, USA

Posted: Fri Jul 18, 2008 7:23 pm    Post subject:  

Use picture string mask to overlay any existing values Code: C p'=====' '99999' 106 ALL
Back to top  
avinashgup



Joined: 03 Aug 2007
Posts: 7
Location: Naperville

Posted: Fri Jul 18, 2008 10:27 pm    Post subject: Great! it worked  

Thanks Bill. Your solution worked for me.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
Related Links