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

GENERATE COMPARISON STATEMENTS USING REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MARINA JOSEPH

New User


Joined: 11 Jun 2009
Posts: 61
Location: chennai

PostPosted: Mon Sep 14, 2009 12:14 pm
Reply with quote

Hi all,

Is it possible to generate comparison statements if the copybook structure is given using REXX?



For instance

COPYBOOK1

WS-NAME

WS-AGE

WS-DOB



COPYBOOK2

FS-NAME

FS-AGE

FS-DOB



It should generate statements as below:-



IF WS-NAME = FS-NAME

PRINT “EQUAL”

ELSE

PRINT “UNEQUAL”



IF WS-AGE = FS-AGE

PRINT “EQUAL”

ELSE

PRINT “UNEQUAL



IF WS-DOB = FS-DOB

PRINT “EQUAL”

ELSE

PRINT “UNEQUAL”



Thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 14, 2009 12:18 pm
Reply with quote

cerainly yes, if You have the proper rexx skills icon_biggrin.gif

I might have somewhere a snippet to do something similar,
if I can find it i' ll post it later
Back to top
View user's profile Send private message
MARINA JOSEPH

New User


Joined: 11 Jun 2009
Posts: 61
Location: chennai

PostPosted: Mon Sep 14, 2009 12:21 pm
Reply with quote

I am not expert in REXX.
Just have done 1 or 2 programs.
Could you please give a sample script?

Thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 14, 2009 12:28 pm
Reply with quote

Quote:
I am not expert in REXX.
Just have done 1 or 2 programs.

I guess that it would not be enough...
I' ll post anyway
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Sep 14, 2009 12:32 pm
Reply with quote

Quote:
I am not expert in REXX.
Just have done 1 or 2 programs.

It is more of logic than REXX abilities...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 14, 2009 7:26 pm
Reply with quote

Hello,

Is this part of the similar topic currently active in the dfsort part of the forum?

If the input is delimited data, this will probably not be much use. . .

If this is for the same requirement, suggest you do the unstring and compare the bytes in each field to identify the unequal byte(s) (unless the requirement has changed).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top