MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

write a string starting from column 10 in a dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Anit1
Beginner


Joined: 20 Jul 2003
Posts: 4
Topics: 3
Location: India

PostPosted: Thu Feb 05, 2004 8:57 am    Post subject: write a string starting from column 10 in a dataset Reply with quote

I have to write a string at line 30 starting from column 10. I am trying to use ISREDIT for this.

I tried with below code. But not able to do it.

curl = 30
curc = 10
"ISREDIT CURSOR = " CURL CURC
"ISREDIT LINE .ZCSR = " string

It's writing at row 30 but starting from column 1.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 699
Topics: 63
Location: USA

PostPosted: Thu Feb 05, 2004 10:05 am    Post subject: Reply with quote

Looks like LINE is taking you to begining of line represented ny .ZCSR. Why not do a right shift by 10. Or attach ten blanks to string. Or if you want to preserve first ten columns then attach that content to string.
Back to top
View user's profile Send private message Send e-mail
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Feb 06, 2004 3:16 am    Post subject: Reply with quote

Anit1,

The "ISREDIT LINE lptr = data" command has control only over the "rows" and not on the column. Hence you are having this problem.

Try this...

Code:

"ISREDIT (L1) = LINE 30"
PARSE VAR L1 PRE +10 DUMMY
L1 = PRE || YOURSTRING
"ISREDIT LINE 30 = " L1


Another way would be to use :
Code:

"LINE 30 = " STR1 
"SHIFT ) 7 5"     
"SHIFT < 7"       


Hope this helps...

Cheers,
Coolman
________
starcraft II replays
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group