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
 

 

moving numeric field data

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

New User


Joined: 09 May 2009
Posts: 1
Location: india

PostPosted: Sat May 09, 2009 6:31 pm    Post subject: moving numeric field data
Reply with quote

Hi,

i need to write a sort card in which, i'm moving PIC 9(9) to S9(9) COMP. How can i write this in a sort card
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sat May 09, 2009 7:10 pm    Post subject:
Reply with quote

Something like StartingPosition,Length,ZD,TO=PD?
Or:
SyncSort for z/OS Programmer’s Guide wrote:
The first field (1,10,ZD,PD) begins in position 1. This field was a 10-byte ZD field that
began in position 1 before OUTREC processing. It will be converted to a 6-byte PD field
in the output record, because 6 bytes are required to contain 10 decimal digits as a PD
field.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat May 09, 2009 10:17 pm    Post subject:
Reply with quote

Hello,

If the target field is COMP, TO=PD won't work as needed. They are not the same format. . . PD is Packed Decimal (COMP-3).
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sat May 09, 2009 10:25 pm    Post subject:
Reply with quote

dick scherrer wrote:
If the target field is COMP, TO=PD won't work as needed. They are not the same format. . . PD is Packed Decimal (COMP-3).
My bad, sometimes I see what is not there.....
Replacing the PD with BI of FI should work...... icon_redface.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 -> 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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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