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
 

 

How to write the records into ps file from vsam file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Thu Sep 06, 2007 1:57 pm    Post subject: How to write the records into ps file from vsam file
Reply with quote

How to write the records into ps file from vsam file?

IF EMP-ID IS NUMERIC
MOVE EMP-ID TO OUT-EMP-ID.
IF FIRST-NAME IS ALPHABETIC
MOVE FIRST-NAME TO FIRST-NAME-OUT.
IF MIDDLE-NAME IS ALPHABETIC
MOVE MIDDLE-NAME TO MIDDLE-NAME-OUT.
IF LAST-NAME IS ALPHABETIC
MOVE LAST-NAME TO LAST-NAME-OUT.
write fd-out.

I have written the above code but some junk values are loaded?????
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Sep 06, 2007 2:22 pm    Post subject:
Reply with quote

Lavanya,

From your post, nothing is clear. Could you please elaborate?
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: Thu Sep 06, 2007 7:09 pm    Post subject:
Reply with quote

Hello,

Your situation is a probably a data content or alignment problem. It is not a vsam/ps issue.

As Murali requests, please post some detail.

You need to define "junk". You might show the "bad" output (in hex) as well as the input that was moved to that output (also in hex).
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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