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
 
File aid Record layout view

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

New User


Joined: 07 Jul 2006
Posts: 2
Location: Louisville,KY, USA

PostPosted: Fri Jul 07, 2006 9:19 pm    Post subject: File aid Record layout view
Reply with quote

I am viewing the dataset using layout in fileaid.
Which has binary variable & comp-3 fields.
If we view through dataset some junk characters were displayed.
But using fileaid we can able to see the value.I want to download those values into another dataset. How can we achive this
Back to top
View user's profile Send private message

cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Sat Jul 08, 2006 12:29 am    Post subject: Re: File aid Record layout view
Reply with quote

You can use batch FILEAID to take a field (or fields) of each record in a dataset and place this field into its own dataset:

Code:

//FILEAID EXEC PGM=FILEAID                                 
//SYSPRINT DD  SYSOUT=*                                     
//SYSLIST  DD  SYSOUT=*                                     
//DD01     DD  DSN=INPUT.FILE,DISP=SHR                     
//DD01O    DD  DSN=OUTPUT.FILE,                             
//             DISP=(NEW,CATLG),                           
//             UNIT=(SYSDA),SPACE=(TRK,(5,5),RLSE),         
//             DCB=(RECFM=FB,LRECL=21,BLKSIZE=2100)         
//SYSIN    DD  *                                           
$$DD01 COPYALL PADCHAR=C' ',MOVE=(1,20,11)                                     
/*                                                         


In the above example, the coding of the MOVE parameter will decide what part of the record to COPY. MOVE=(1,20,11) would indicate to MOVE 20 positions starting at position 11 of the input record to position 1 of the output record. If the output dataset has an LRECL greater than 20 positions (in my example I am using an LRECL of 21), the remainder of the record will be padded with blanks. COPYALL indicates to copy every record.
Back to top
View user's profile Send private message
Nithinra

New User


Joined: 03 Jul 2006
Posts: 11

PostPosted: Tue Jul 11, 2006 2:29 pm    Post subject: Re: File aid Record layout view
Reply with quote

If you have a Copybook for that file , You can map it using File Aid.
When you map it you can see the data correctly.

Regards,
Nithin
Back to top
View user's profile Send private message
rainye

New User


Joined: 11 Jul 2006
Posts: 8

PostPosted: Tue Jul 11, 2006 8:40 pm    Post subject:
Reply with quote

It seems that a DFSORT can do the same thing , right ?

Is there any difference ?
Back to top
View user's profile Send private message
hermit_reloaded

New User


Joined: 23 Apr 2007
Posts: 26
Location: India

PostPosted: Fri Aug 17, 2007 4:45 pm    Post subject: Reply to: File aid Record layout view
Reply with quote

kindly tell me the way to open a vsam file and also map it with the given copybook using batch fileaid.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
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 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