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

Write Comp-3 fields in rexx


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

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Sun Jun 14, 2009 10:10 pm
Reply with quote

I want to write Comp-3 field in using rexx..
Let us say value of a variable is 99999.. I want that to be written in rexx as a comp-3 field
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jun 14, 2009 11:46 pm
Reply with quote

since this is a REXX forum and a REXX issue only, please do not use COBOLESE

the common terminology for non COBOL users, is the one USED in the POP
( principle of operations )

1 - signed zoned numeric
x'f0f1f2f3f4f5f6f78f8f9' an the zone of the last digit represents the sign
x'Cx' x'Fx' for positive numbers, x'Dx' for negative numbers sometimes also x'Bx'
2 - binary
3 - packed

given these premises I guess that comp-3 means packed
here are the links my posts regarding pack and unpack in rexx

ibmmainframes.com/viewtopic.php?t=31547&postdays=0&postorder=asc&start=15

ibmmainframes.com/viewtopic.php?t=27921&highlight=rexx+pack+unpack
Back to top
View user's profile Send private message
Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Mon Jun 15, 2009 12:30 am
Reply with quote

I am asking "How to write a field in COmp-3 format" .. The reference you have given is read a COMP-3 field
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 15, 2009 1:14 am
Reply with quote

Quote:
... How to write a field in COmp-3 format ...

why didn' You post to the COBOL forum then ?
the right term around here is packed icon_cool.gif

Quote:
here are the links my posts regarding pack and unpack in rexx

a mild suggestion... instead of complaining learn to read
as I said in the quoted sentence I gave both transformations
the first link is about pack,
the second is about unpack icon_evil.gif
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