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

How to Initialize S9(8)V9(2)USAGE COMP-3 as zeros Syncsort


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

New User


Joined: 22 Mar 2010
Posts: 17
Location: Hartford

PostPosted: Tue Apr 20, 2010 3:28 am
Reply with quote

Hi,

I want to default the field S9(8)V9(2)USAGE COMP-3 to zeros in outrec of Syncsort card.

The field iam mentioning is from 250 to 6 bytes

I Have tried the below two syntax

OUTREC FIELDS=(1:1,13,25:225X,250:6X'FFFFFFFFFFFF',256:30X)
OUTREC FIELDS=(1:1,13,25:225X,250:6Z,256:30X)

For the second declaration its showing INVALID in the field.

Please help in finding how to declare

Thanks,
Kranthi.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Apr 20, 2010 4:37 am
Reply with quote

comp-3 is packed-decimal.

where in your outrec fields control card are you attempting to overlay a 6 byted packed-decimal field contain zero?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Apr 20, 2010 6:24 am
Reply with quote

Try
Code:
250:+0,TO=PD,LENGTH=6
Back to top
View user's profile Send private message
Kranthi_Merigala

New User


Joined: 22 Mar 2010
Posts: 17
Location: Hartford

PostPosted: Tue Apr 20, 2010 7:41 pm
Reply with quote

Thank you.It worked
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Apr 20, 2010 8:43 pm
Reply with quote

Glad to hear that! icon_smile.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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top