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
 
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

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