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

Please identify the programming language in teh below code


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maheshunni

New User


Joined: 10 Dec 2007
Posts: 2
Location: Bangalore

PostPosted: Fri Nov 14, 2008 10:42 am
Reply with quote

Please identify the programming language in the below code:

Code:
GetCDSid:
If debug Then Say '..GetCDSid'
 
   CDSid = ''
  'CGI GETVAR HTTP_COOKIE (VAR COOKIE'
   parse var cookie .  'WSL-credential=' wsl ';' .
   If wsl ^='' Then
   Do
     'PIPE (end \)',
         'var wsl',
       '| spec /COOKYCHK -tsei/ 1 w 1 nw',
       '| COMMAND | ',
       '  Console | ',
      'A:      TAKE 1 | Var valid \',
      'A: | B: CASEI LOCATE 1.7  /CURRENT/  | Specs word3-* next | var cstamp \',
      'B: | C: CASEI LOCATE 13.7 /ISSUED:/  | Specs word3-* next | var istamp \',
      'C: | D: CASEI LOCATE 13.8 /EXPIRES:/ | Specs word3-* next | var estamp \',
      'D: | E: CASEI LOCATE 14.5 / 001:/    | Specs word4   next | var CDSid  \',
      'E: | stem leftovers.'
 
      Parse var cdsid . '=' cdsid
      Upper CDSid
      CDSid = Strip(CDSid)
      If cdsid = '' Then
         wsl = ''
      Else
      Do
         next_day = (SubWord(istamp,1,3) ^= SubWord(cstamp,1,3))
         ctime = Word(cstamp,4)
         itime = Word(istamp,4)
         Parse Var ctime ch ':' cm ':' cs
         Parse Var itime ih ':' im ':' is
         recheck =  (ch + next_day * 24  - ih > 2) | ,
                   ((ch + next_day * 24  - ih = 1) & (im < cm))
         If recheck Then wsl = ''
       End
    End
   If wsl = '' Then
      hdr = 'Location: 'wslurl'?back='myurl
Return
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Nov 14, 2008 11:08 am
Reply with quote

Hello,

Where did you find this code?

Is it currently being run? If so, describe the environment where this runs.

Are there other modules with similar code in some library?

NOTE: The duplicate topic has been "locked". Let me know if the locked topic is still needed for anything.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Nov 14, 2008 11:31 am
Reply with quote

REXX.

O.
Back to top
View user's profile Send private message
maheshunni

New User


Joined: 10 Dec 2007
Posts: 2
Location: Bangalore

PostPosted: Fri Nov 14, 2008 12:17 pm
Reply with quote

Environment is VM:webgateway webserver
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Identify and write records containing... SYNCSORT 11
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts purge jobs with return code 0 and ret... JCL & VSAM 6
Search our Forums:


Back to Top