Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 10327
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us