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
 
To Convert numeric to PD using Syncsort

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

New User


Joined: 09 Feb 2009
Posts: 8
Location: Chennai

PostPosted: Mon Jan 09, 2012 7:58 pm    Post subject: To Convert numeric to PD using Syncsort
Reply with quote

Hi,
Following is my input file where the first 16 numeric data and then 17 to 30 has to be converted to PD.

Please suggest.

Code:
00000000000010000100100001                             5401DK 2080000000ACT71
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Jan 09, 2012 8:36 pm    Post subject: Reply to: To Convert numeric to PD using Syncsort
Reply with quote

And what would you like your output to look like, since the PD are shorter...
Back to top
View user's profile Send private message
amdparsn

New User


Joined: 09 Feb 2009
Posts: 8
Location: Chennai

PostPosted: Mon Jan 09, 2012 8:47 pm    Post subject: Hii Bill
Reply with quote

Of course my o/p has to be shortened , and am going to use this o/p file for loading a table.
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: Mon Jan 09, 2012 9:31 pm    Post subject:
Reply with quote

Hello,

Rather than the silly "Of course" reply, it would be more productive to answer Bill's question. . .

You have shown the input. Now show the output (in hex using the Code tag).
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 187
Location: Toronto, ON, Canada

PostPosted: Tue Jan 10, 2012 3:44 am    Post subject: Re: To Convert numeric to PD using Syncsort
Reply with quote

amdparsn wrote:
Hi,
Following is my input file where the first 16 numeric data and then 17 to 30 has to be converted to PD.

Please suggest.


I suggest to use a SORT. Below is sample control statement to convert the first field.
Code:
SORT FIELDS=COPY                     
OUTREC BUILD=(1,16,ZD,TO=PD,LENGTH=8)

The LENGTH= subparm is optional. You can leave it out.
Back to top
View user's profile Send private message
amdparsn

New User


Joined: 09 Feb 2009
Posts: 8
Location: Chennai

PostPosted: Wed Jan 11, 2012 12:42 pm    Post subject: Reply to: Jerryte
Reply with quote

Hi There thanks for the code.... I've got the o/p as expected.
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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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