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

How to write the records into ps file from vsam file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Thu Sep 06, 2007 2:22 pm
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

Moderator Emeritus


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

PostPosted: Thu Sep 06, 2007 7:09 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top