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

Write output in the PDS members


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
banand

New User


Joined: 05 Jun 2007
Posts: 28
Location: Mumbai

PostPosted: Wed Aug 26, 2009 12:43 pm
Reply with quote

My job is used to convert (By COBOL program) the Common delimited variable block file in to Fixed format fixed block file. And this job is a dataset triggered job that is when ever third party send us the file this job will be triggered. Now there is only one third party so no problem ,but there is new third coming in to picture, so they will be sending the file in different file name.
Now instead of using different Jcl I am planning to use one JCL and include member in it which has the DD statement for the input file. Based on the output of the List cat (Gives which third party file cataloged)I will be creating this Include member. Now by giving the listcat output to the sort card I have tried to create multiple members (Since I need to change the file names in different steps) using outfil statement, but all the members are written with the output of the last outrec statement instead of corresponding outrec statement. Below I have attached the screen shot of my JCL
Code:

//PS020  EXEC PGM=SORT                                         
//SORTJNF1 DD DSN=WXX262.LISTCAT.E3USI250,DISP=SHR             
//SORTJNF2 DD DSN=WXX262.MAPPING.FILE,DISP=SHR                 
//BKPFILE  DD DSN=WXX830.BALA.SEMIS(TEST12),DISP=OLD           
//INFILE   DD DSN=WXX830.BALA.SEMIS(TEST13),DISP=OLD           
//SYSIN DD *                                                   
   JOINKEYS  FILES=F1,                                         
             FIELDS=(033,004,A),INCLUDE=(13,7,CH,EQ,C'NONVSAM')
   JOINKEYS  FILES=F2,                                         
             FIELDS=(001,004,A)                                 
   REFORMAT FIELDS=(F2:001,4,F1:22,44,F2:5,44)                 
   SORT FIELDS=(1,10,CH,A),STOPAFT=1                           
   OUTFILE FNAMES=BKPFILE,                                     
      OUTREC=(1:C'//SORTIN DD DISP=SHR,DSN=',26:5,44,70:11X,/, 
              1:C'//SORTOUT DD DISP=(NEW,CATLG,DELETE),',38:43X,
             /,1:C'//        ',11:C'DSN=',15:49,44,59:21X)     
   OUTFILE FNAMES=INFILE,                                       
      OUTREC=(1:C'//E3250I01 DD DISP=SHR,DSN=',28:49,44,72:09X)
/*                                                             
//SYSOUT DD SYSOUT=*         


Please help me to create different output in multiple members in the same PDS. Also please let me know if you need any more details
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: Wed Aug 26, 2009 7:14 pm
Reply with quote

Hello,

Suggest you post some of the current and expected future input data and the output(s) you want from that input.

Explain the rules for processing the input.

I'm not sure why the output uses ddname INFILE - confusing at best. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 27, 2009 6:45 pm
Reply with quote

That's an input to other system, we care about others... icon_lol.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
Search our Forums:

Back to Top