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: 10274
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: 10274
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


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