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

Reporting signed/unsignd COMP-3 variables using OUTREC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Fri Jul 17, 2009 6:39 pm
Reply with quote

I'm having a problem in reporting COMP-3 variables. The PIC clause of the variables is S9(9)V9(2) COMP-3 , S9(11)V9(2) COMP-3 and 9(11)V9(2) COMP-3.

What should we write in OUTREC so that we can have sign as well as decimal in output report.
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: Fri Jul 17, 2009 8:36 pm
Reply with quote

Hello,

You would use EDIT=

There are multiple examples in this JCL part of the forum.
Back to top
View user's profile Send private message
rgupta71

Active User


Joined: 21 Jun 2009
Posts: 160
Location: Indore

PostPosted: Fri Jul 17, 2009 10:08 pm
Reply with quote

Dick

Can u please check this sort
For S9(9)V9(2) COMP-3
(1,6,PD,EDIT=(STTTTTTTTT.TT),SIGNS=(+,-))

and for S9(11)V9(2)

(1,7,PD,EDIT=(STTTTTTTTTTT.TT),SIGNS=(+,-))


Thanks in Advance
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: Fri Jul 17, 2009 10:20 pm
Reply with quote

Hello,

At a glance, looks OK. What happens when you execute this?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
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
No new posts JCL with variables JCL & VSAM 1
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
Search our Forums:

Back to Top