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
 

 

Writing Packed Decimal Field in File using Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Writing Packed Decimal Field in File using Easytrieve
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: 3158
Location: Tucson AZ

PostPosted: Tue May 29, 2007 4:01 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue May 29, 2007 5:09 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue May 29, 2007 5:42 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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