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
 
Dynamic File location of files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Mon Jul 27, 2009 5:43 pm    Post subject: Dynamic File location of files
Reply with quote

Hi,

I have a requirement to allocate output file based upon the different of record type in input file. The no of Record type are not fixed & could be N.

For ex -

HDR1ASAS122222
DTL1SASA1312321
TRL1ASAS1121311
HDR2SADSAD1221
DTL2DSD13123211
TRL2SDSAD11213
HDR3FDSFSD1122
DTL3DSFSF213111
TRL3DFSFS211213

I need all of these records in 3 different files.
1st file for HDR1, DTL1, TRL1
2nd File for HDR2, DTL2,TRL2.....so on

Can any one suggest some approach for this?
Back to top
View user's profile Send private message

Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Mon Jul 27, 2009 5:54 pm    Post subject:
Reply with quote

Hi,
Use the OUTFILL for creating 3 files and use the IF THEN WHEN condition to differentiate the 3 record like =(4,1,EQ,CH,’1’)
BUILD

Check for the syntax, I hope this will help
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 6:04 pm    Post subject:
Reply with quote

How do you differentiate between headers, trailers and data records.
What positions are the keys, what length and what format.
What are the file attribute for the input file, RECFM & LRECL
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: Mon Jul 27, 2009 9:53 pm    Post subject:
Reply with quote

Hello,

Quote:
The no of Record type are not fixed & could be N.
What is the maximum?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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