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
 
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
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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