| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
umed
Joined: 13 May 2005
Posts: 40
|
| Posted: Tue Dec 06, 2005 4:54 pm Post subject: How to determine record length and format of file thru REXX |
|
|
Hi,
How can we determine the Record length and the Format for the given
input file ?
Regards,
Amol |
|
| Back to top |
|
jon_s_rice
Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA
|
| Posted: Tue Dec 06, 2005 5:14 pm Post subject: |
|
|
| Use the functiom listdsi. Information is returned in variables. |
|
| Back to top |
|
umed
Joined: 13 May 2005
Posts: 40
|
| Posted: Tue Dec 06, 2005 7:49 pm Post subject: Re: How to determine record length and format of file thru R |
|
|
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 |
|
Prabha
Joined: 05 Dec 2005
Posts: 64
|
| Posted: Wed Dec 07, 2005 3:51 pm Post subject: Re: How to determine record length and format of file thru R |
|
|
I tried LISTDSI command, its returning some value.
Ex: returned as 16.
What does it mean? |
|
| Back to top |
|
jon_s_rice
Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA
|
| Posted: Thu Dec 08, 2005 6:38 am Post subject: |
|
|
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 |
|
Prabha
Joined: 05 Dec 2005
Posts: 64
|
| Posted: Thu Dec 08, 2005 10:51 am Post subject: Re: How to determine record length and format of file thru R |
|
|
| Thanks a lot! Its working fine now. |
|
| Back to top |
|
mohitsaini
Joined: 15 May 2006
Posts: 41
|
| Posted: Thu May 18, 2006 5:50 pm Post subject: Re: How to determine record length and format of file thru R |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|