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 

How to redefine in SAS?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Apr 21, 2004 5:24 am    Post subject: How to redefine in SAS? Reply with quote

Hi,
Is it possible to use redefines like in COBOL? All suggestions are welcome.




Thanks
Sai Krishna
Back to top
View user's profile Send private message
kok328
Beginner


Joined: 05 Nov 2003
Posts: 19
Topics: 0
Location: MI, USA

PostPosted: Wed Apr 21, 2004 6:13 pm    Post subject: Reply with quote

Yes it is possible but it is more like you would do in Easytrieve not COBOL.

Just create another field definition with overlaying byte positions.

Sorry, been out of the trade for sometime now and can't recall the exact syntax. Crying or Very sad
Back to top
View user's profile Send private message Send e-mail AIM Address
Itanium
Beginner


Joined: 14 Aug 2005
Posts: 6
Topics: 1

PostPosted: Sun Aug 14, 2005 1:03 pm    Post subject: Reply with quote

Hi,

Can someone let me know the exact way to redefine in Easytrieve ?

Thanks, Smile
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sun Aug 14, 2005 1:21 pm    Post subject: Reply with quote

Quote:

Can someone let me know the exact way to redefine in Easytrieve

Itanium,

Here is a sample code to show you redefinition along with reference modification

Code:

DEFINE W-TEXT W 50 A
DEFINE W-CHAR W-TEXT 1 A OCCURS 50
DEFINE W-PART-CHAR W 10 A

JOB INPUT NULL

    W-TEXT = 'Itanium'
    MOVE W-CHAR(4) 4 TO W-PART-CHAR
    DISPLAY RESULT


W-PART-CHAR will have nium

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Itanium
Beginner


Joined: 14 Aug 2005
Posts: 6
Topics: 1

PostPosted: Sun Aug 14, 2005 1:39 pm    Post subject: Reply with quote

Thank you Kolusu.
Smile
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 -> Application Programming 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