Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1269110
  • 博文数量: 287
  • 博客积分: 11000
  • 博客等级: 上将
  • 技术积分: 3833
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-16 08:43
文章分类
文章存档

2013年(15)

2012年(17)

2011年(17)

2010年(135)

2009年(85)

2008年(18)

分类: 系统运维

2010-06-23 15:59:52

 
 
     dRtvSpcPtr        pr                  extpgm('QUSPTRUS')
     d SpcName                       20    const
     d UsrSpcPtr                       *
     d ErrCde                              likeds(ErrCde) options(*nopass)
     dErrCde           ds
     d BytPrv                        10i 0 inz(0)
     dSpcName          ds
     d SName                         10    inz('SPACENAME')
     d SLib                          10    inz('QTEMP')
     dUsrSpcPtr        s               *
     dPgmVar           s             50    based(UsrSpcPtr)
     dWait             s              1
      /free
       // Get a pointer to the user space
       RtvSpcPtr( SpcName :UsrSpcPtr :ErrCde);
       // Retrieve data from the user space
       dsply PgmVar;
       // Change our position in the user space and retrieve different data
       UsrSpcPtr += 6;
       dsply PgmVar ' 'Wait;
       Return;
      /end-free
阅读(1701) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~