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

Changing the sequential file records into packed decimal rec


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yellanki

New User


Joined: 27 Mar 2006
Posts: 8
Location: columbus

PostPosted: Tue Feb 19, 2008 2:43 am
Reply with quote

Hi All,

I ran a query in SPUFI, the selected field is packed decimal variable in the table but where as in SPUFI output I got it as normal variable.

I would like to convert my selected field as packed decimal, I used DIGITS in the query but didn't get the expected result.

Can some one help me on that, Thanks for your valuable time .
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Feb 19, 2008 3:52 am
Reply with quote

yellanki wrote:
Hi All,

I ran a query in SPUFI, the selected field is packed decimal variable in the table but where as in SPUFI output I got it as normal variable.

I would like to convert my selected field as packed decimal, I used DIGITS in the query but didn't get the expected result.

Can some one help me on that, Thanks for your valuable time .


SPUFI returns everything in character format. I'm not sure what you want but try using CHAR instead of DIGITS. I can't understand why so many people think PD is something nasty.
Back to top
View user's profile Send private message
yellanki

New User


Joined: 27 Mar 2006
Posts: 8
Location: columbus

PostPosted: Tue Feb 19, 2008 4:06 am
Reply with quote

I ran the query the CHAR but it looks like got the similar result when I tried with DIGITS.

The reason i need the file in PD format is my spufi output is input to another program which accepts the file in PD format.



Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Feb 19, 2008 4:52 am
Reply with quote

Hello,

I'd suggest you discontinue using spufi and write a bit of program code to create the file as you want it or change the file definiton to use the data as spufi creates it.

An additional step could also be added to convert the file from spufi format to needed format. . . . No, that was not really a suggestion. . .
Back to top
View user's profile Send private message
yellanki

New User


Joined: 27 Mar 2006
Posts: 8
Location: columbus

PostPosted: Tue Feb 19, 2008 11:15 am
Reply with quote

I follow it, wrote the syncsort for that not yet tested. Thanks for your timely response.


):-
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Tue Feb 19, 2008 6:40 pm
Reply with quote

Why not just have the program query the data directly instead of making a copy of something already in storage?
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top