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
 
Packed value in OUTREC field.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Sep 28, 2010 5:23 pm    Post subject: Packed value in OUTREC field.
Reply with quote

Hi
I need to modify a packed decimal value to 20 for all the records.

Cobol decleration:
Code:

QST-AMT         PIC S9(07)V99 COMP-3


I did write a sort card with outrec
Code:

SORT FIELDS=(1,9,CH,A)
OUTREC FIELDS=(1,128,129:X'02000C',132,69)


Is the hex representation value of 20 correct?
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1782
Location: Bloomington, IL

PostPosted: Tue Sep 28, 2010 7:29 pm    Post subject: Re: Packed value in OUTREC field.
Reply with quote

arvind.m wrote:
Is the hex representation value of 20 correct?

Yes, it is.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Sep 29, 2010 5:35 am    Post subject:
Reply with quote

Hi,

Code:
QST-AMT         PIC S9(07)V99 COMP-3


Doesn't this occupy 5 bytes ?


Gerry
Back to top
View user's profile Send private message
Werner Spreeuwenberg

New User


Joined: 24 Jul 2009
Posts: 8
Location: Netherlands

PostPosted: Wed Sep 29, 2010 2:20 pm    Post subject: Reply to: Packed value in OUTREC field.
Reply with quote

Yes it does.

PIC S9(07)V99 COMP-3 =
Code:
[99]  [99]  [99]  [99]  [9S]
 12    34    56    7,1   2C

The comma is imaginary and S is for the sign (C or D).
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am

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