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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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