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

to find recfm


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

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Wed Jul 27, 2005 2:01 am
Reply with quote

Hi,

I want to know the record format for the given list of datasets.
Can anyone help me the with job or details?


Thanks,
Prem
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Wed Jul 27, 2005 9:40 am
Reply with quote

U can use the tso command list dataset attributes i.e LISTD.
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Wed Jul 27, 2005 5:43 pm
Reply with quote

Or, you can use the LMQUERY ISPF Service. Here is an example using TSO/E REXX:

Code:

/* REXX */                                                       
"ISPEXEC LMINIT DATAID(MYDSN) DATASET('MY.DSN') ENQ(SHR)" 
"ISPEXEC LMOPEN DATAID(&MYDSN) OPTION(INPUT)"                   
"ISPEXEC LMQUERY DATAID(&MYDSN) DATASET(VDSN)                   
  VOLUME(VVOL) LRECL(VLRECL) RECFM(VRECFM) DSORG(VDSORG)"       
"ISPEXEC LMCLOSE DATAID(&MYDSN)"                                 
SAY VDSN VVOL VLRECL VRECFM VDSORG                               
Back to top
View user's profile Send private message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Wed Jul 27, 2005 9:14 pm
Reply with quote

Hi VM and Prandip,

Thanks a lot for your help.

Regards,
Prem
Back to top
View user's profile Send private message
kcprem

New User


Joined: 30 Jun 2005
Posts: 18

PostPosted: Wed Jul 27, 2005 9:38 pm
Reply with quote

Hi,

The LISTD command and Rexx recalls the dataset from migration and gives the information.

Is there any other commands which gives migration dataset information without recalling the dataset.

PS: in HLIST command, I am not able to get Record format.
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 84
Location: In my tiny cubicle ...

PostPosted: Wed Jul 27, 2005 11:32 pm
Reply with quote

Well, it's outside of this particular forum, but the LISTDSI function, available from within either a CLIST or a TSO/E REXX exec, can be invoked with a RECALL or NORECALL option, and can also return a variable with the dataset's RECFM.
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top