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
 

 

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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