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
 

 

How to determine record length and format of file thru REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to determine record length and format of file thru REXX
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    Post subject:
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    Post subject: Re: How to determine record length and format of file thru R
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    Post subject: Re: How to determine record length and format of file thru R
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    Post subject:
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    Post subject: Re: How to determine record length and format of file thru R
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: 90

PostPosted: Thu May 18, 2006 5:50 pm    Post subject: Re: How to determine record length and format of file thru R
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 0 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 0 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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