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

Writing Packed Decimal Field in File using Easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mukulbit

New User


Joined: 16 May 2007
Posts: 6
Location: pune

PostPosted: Tue May 29, 2007 12:33 pm
Reply with quote

Hi All
I'm reading a VSAM file in that there is a Packed Decimal field and moving that field in to another Packed Decimal field and writting the new field in to a Flat file but in file i'm getting garbage value.Can any body tell me why this is happening? Code is

FILE INFILE VS
IN-CURR-BAL 1 9 P

FILE OUTFILE
OUT-CURR-BAL 1 9 P

OUT-CURR-BAL = IN-CURR-BAL
PUT OUTFILE
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 29, 2007 4:01 pm
Reply with quote

The first answer is that you are actually not doing the move, the second is that the garbage is in the input.
Display the input prior to the move and the output just after the move.
BTW, how do know it is garbage and what does it look like?
Back to top
View user's profile Send private message
mukulbit

New User


Joined: 16 May 2007
Posts: 6
Location: pune

PostPosted: Tue May 29, 2007 4:55 pm
Reply with quote

I've displayed it is giving the correct value.but while putting in the file it is not giving desired result.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 29, 2007 5:09 pm
Reply with quote

Display IN-CURR-BAL prior to the move and OUT-CURR-BAL just after the move.
By the way, how do know it is garbage and what does it look like?
Back to top
View user's profile Send private message
mukulbit

New User


Joined: 16 May 2007
Posts: 6
Location: pune

PostPosted: Tue May 29, 2007 5:31 pm
Reply with quote

i did the same as you suggested.it is displaying correct values.but after writting in the file it giving the values as .
.........
.........
......?c.
......oo.
........?
.......?.
......&?.
......???
......h..
.........
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue May 29, 2007 5:42 pm
Reply with quote

How about a hex display of a couple of the fields?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 29, 2007 6:23 pm
Reply with quote

Code:
FILE INFILE VS

Is the input file Variable Record length?
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Mon Jun 04, 2007 5:03 pm
Reply with quote

Packed decimal looks that only while written in file. in order to view it, map inot file-aid or convert into characters using SORT.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 3
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