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

Display COMP-3 values in readable form


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

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Tue Feb 13, 2007 2:44 pm
Reply with quote

I have 3 question,

1. IF we view a file containing COMP-3 values, the values are not in readable form. Can a REXX exec read and display those values? How?

2. I have 10 byte record with combination of COMP-3 values,Numeric Values in different layouts.
i.e. for one layout first 6 bytes may contain comp3 value while other layout may have 8bytes ...etc.
Can i read each byte and check whether it's comp3 value or normal numeric value which is readable!


3. Using PULL we can get data from user,
Can i ask user to press any key and perform task depending on his response,
e.g. Suppose i have a rexx to view one GDG.
The rexx will look something like this,
Code:

/* REXX  */                                     
ADDRESS TSO                                     
'ISREDIT MACRO'                                 
"ISPEXEC VIEW DATASET('USERID.MLQ.GDG.G0010V00')"

Now after this i want rexx to wt for user response,If user presses 'Down arrow key' then next generation of GDG (11) should be displayed, if 'Up arrow Key' previous generation (9) should be displayed .... for any other key end exec.

Is that possible??
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 13, 2007 4:12 pm
Reply with quote

If you had bothered th search this forum for comp-3 you would have found this http://ibmmainframes.com/viewtopic.php?t=17235&highlight=comp3
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Tue Feb 13, 2007 5:26 pm
Reply with quote

Thanks,but
That i have seen already
2nd question is Imp.

The record in input file is AAAA 00000100.
The numeric part 00000100 is comp 3 so when i open the file in 3.4 and read i am not able to see the value as 00000100 .....
If my rexx is reading value from file word by word, how it will understand whether it's comp value or normal char value. Or there is know way rexx can understand that ?

I want my rexx to convert only 2nd word (in this case) and not 1st
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 13, 2007 5:33 pm
Reply with quote

If you look byte for byte, X'F0' thru X'F9' would be display and X'00' thru X'99' could be comp-3 and X'0F' thru X'9F' or X'0C' thru X'9C' would indicate the sign end of the field.
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Wed Feb 14, 2007 8:59 am
Reply with quote

Ok .... gr8,
About the 3rd question?
Is it possible to accept 'key' from user?
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: Wed Feb 14, 2007 9:16 am
Reply with quote

Hello,

If you change the keyboard mapping in the 3270 emulator you're using, you could map the up/down arrows to emulate pf7/pf8. Rather than that, i'd suggest teaching the users to use pfkeys that you provide. Some folks also map PageUp and PageDown to pf7&8.

You should be able to scroll via pfkeys (you don't have to use pf7/pf8). Keep in mind that the directional arrow keys are (typically) not interrupt keys but merely move the cursor on the screen.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top