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

How to determine record length and format of file thru REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Dec 06, 2005 4:54 pm
Reply with quote

Hi,
How can we determine the Record length and the Format for the given
input file ?

Regards,
Amol
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Tue Dec 06, 2005 5:14 pm
Reply with quote

Use the functiom listdsi. Information is returned in variables.
Back to top
View user's profile Send private message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Tue Dec 06, 2005 7:49 pm
Reply with quote

Hi,
Thanks for reply .but I want to find the same in VM / CMs environment.Where listdsi do not works.


thanks,

Amol
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Dec 07, 2005 3:51 pm
Reply with quote

I tried LISTDSI command, its returning some value.
Ex: returned as 16.
What does it mean?
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Thu Dec 08, 2005 6:38 am
Reply with quote

A 16 return code indicates an error occurred, most likely the dataset was not found. If you do not include the dataset in apostraphes it will append your file prefix onm the beginnig. code the lstdsi:
rtn = listdsi('MYPREFX.MYGROUP.LIBRARY')
or
rtn = listdsi("'"rexx_var"'")
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Dec 08, 2005 10:51 am
Reply with quote

Thanks a lot! Its working fine now.
Back to top
View user's profile Send private message
mohitsaini
Warnings : 1

New User


Joined: 15 May 2006
Posts: 92

PostPosted: Thu May 18, 2006 5:50 pm
Reply with quote

Hi there,

I am also trying to execute REXX in CMS but couldn't get it working.

my code is as follows:

/* REXX GETGDG */
RC = LISTDSI ('DIS.DIDF1601.DI11030.A20')

and it is not working

Please help.

Mohit
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top