Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Write Comp-3 fields in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Write Comp-3 fields in rexx
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sun Jun 14, 2009 11:46 pm    Post subject: Reply to: Write Comp-3 fields in rexx
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

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

http://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    Post subject: Reply to: Write Comp-3 fields in rexx
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jun 15, 2009 1:14 am    Post subject: Reply to: Write Comp-3 fields in rexx
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us