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
 

 

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 Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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